[android-beginners] scrollView.scrollTo() speed control?

2010-06-08 Thread Michael Dorin
I would like to programmatically scroll to a specific point in a scrollView...which I can do just fine... Except I land there instantly. Is there a way to control the speed of the scroll so it looks smoother? Could somebody point me to an animation with a scrollview? Thank you! -Mike -- You re

[android-beginners] How might I do this (HorizontalScrollView question)?

2010-06-01 Thread Michael Dorin
I have for screens/layouts I would like the user to be able to slide between using a horizontal scroll view. Each screen has different information and controls for the user. I want each of the layouts to occupy the whole screen and the user slides there finger left and right to get to each of th

[android-beginners] XML imageBlob to drawable?

2010-05-27 Thread Michael Dorin
How do I convert an XML imageBlob to a drawable? Thanks, Mike -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe

[android-beginners] How might I do this? (Force a position in a scroll view)

2010-05-13 Thread Michael Dorin
I have a scroll view with a list of single line text items. If the screen is tapped/touched I would like the line items to expand into multi-line text items...that is easy to do.. But I would like the list to expand up and down from where the user touched on the screen... when the scrollview is re

[android-beginners] what happens exactly when android goes to sleep?

2010-05-04 Thread Michael Dorin
Exactly what happens to your activity when android goes to sleep? Either via the power button or letting it sit idle? Sometimes my app does not wake up nicely...It even crashes giving a register dump...other times it seems to be 'half awake'. What methods are invoked? I don't seem to see onCreat

[android-beginners] ScrollView cycle?

2010-04-22 Thread Michael Dorin
Anyway to have a ScrollView cycle back to the beginning when the end is reachedor to the end when trying to scroll past the beginning? Thanks, -Mike -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your ques

[android-beginners] PowerManager userActivity() ... how does this work?

2010-04-14 Thread Michael Dorin
I am trying to keep a device from sleeping if the user is actively moving it. I have a listener attached to the accelerometer sensorwhich I have working great. I thought I could just call power manager, user activity: pm.userActivity(SystemClock.currentThreadTimeMillis(), false); But the de

[android-beginners] spinner question

2010-03-24 Thread Michael Dorin
If I make a spinner and display it, it shows up great. If i changed the adapter under it...The new values show up in the spinner...but the 'un-spun' displayed spinner is twice as tall and has one of those circle selection icons in it when displayed. If I select it, it seems to show up fine, but

[android-beginners] Motorola Droid, OpenGL,...crash on glBindTexture

2010-03-22 Thread Michael Dorin
Is anybody having any openGL issues with the Motorola Droid? I am seeing a crash at gl.glBindTexture(GL10.GL_TEXTURE_2D, getTextureID()); Seems to be related to multi-texturing. Any thoughts? -Mike -- You received this message because you are subscribed to the Google Groups "Android Beginners

[android-beginners] mapview: what might cause the google logo to show up as a red box?

2010-03-17 Thread Michael Dorin
Seems this is a Cliq issue...but wondering if anybody has any idea how to get rid of it? Basically a red box shows up where the google logo should be on maps. Here is a link to t-mobiles forum for another description. http://forums.t-mobile.com/t5/MOTOROLA-CLIQ-CLIQ-XT/Google-Maps-Red-square-on-m

[android-beginners] alertdialog and flashing status bar

2010-03-12 Thread Michael Dorin
We have an application that uses full-screen...the status bar is hidden. However, when we put up an alert dialog, the status bar flashes for a moment, but then is gone. Looks a little strange. If I make custom layouts/dialogs the flashing goes away...is that the only way to clear the flash or doe

[android-beginners] easy way to embed a button in a mapview?

2010-03-11 Thread Michael Dorin
Is there an easy way to embed a button inside a map view? I have been able to create a button above and below and alongside a mapview, but I can't seem to plunk it inside. I would like the mapview to use the whole screen. Thank you, Mike -- You received this message because you are subscribed

[android-beginners] onTap/mapView question

2010-03-11 Thread Michael Dorin
Is there anyway to have both: @Override public boolean onTap(GeoPoint p, MapView mapView) @Override protected boolean onTap(int index) I want to be able to detect if a user has tapped a previously selected GeoPoint. I guess I could do some kind of ugly lat/lon compare in a list.. If

[android-beginners] add text to a drawable? (maps question)

2010-03-10 Thread Michael Dorin
I am doing a map application and would like to put more than just a 'star' or a 'pin' on the map when it is selected. Is it possible to make a drawable icon, and shove some text into it? That way I could have a bit of info and the location tagged. Thanks, Mike -- You received this message beca

[android-beginners] getFromLocationName question

2010-02-24 Thread Michael Dorin
I am running geoCoder.getFromLocationName(locationName, 50) with locationName set to Lima. I know there is at least Lima, OH, but also, obviously Lima, Peru. The only result I ever get is Lima, Peru...seems there may be other Lima's out there. I'm not even in Peru! Ohio is way closer. Any ideas

[android-beginners] LinearLayout Questions

2010-02-21 Thread Michael Dorin
I have a LinearLayout, horizontal, with an EditText and a ImageView. I want everything on oneline but the imageView shoved as far right as possible, and the EditText as far left as possible. The ImageView holds a small icon. I want the EditText to consume the rest of the space on the line. I hav

[android-beginners] Share intent

2010-02-15 Thread Michael Dorin
I am trying to share camera images as well as text. i.putExtra(Intent.EXTRA_STREAM, uri); i.putExtra(Intent.EXTRA_TEXT, "The Text"); i.putExtra(Intent.EXTRA_SUBJECT, "The Subject"); So far the image goes through just fine to anything I share with. However the text and the subject are only picked

[android-beginners] drawable guidelines?

2010-02-12 Thread Michael Dorin
As news androids arrives with new screen sizes and new screen densities... I was wondering if there are guidelines published somewhere on how your 'drawable' images should be created to have maximum compatibility over different devices? Thanks, Mike -- You received this message because you are

[android-beginners] dialog with no buttons...

2010-02-08 Thread Michael Dorin
I would like to make a dialog with no buttons. If the user hits inside the dialog...I want to get an event and select something, close the dialog. If the user strikes outside the dialog...I want to get a different event and close the dialog. Is that easily possible? Thoughts on how it may be don

[android-beginners] EditText field question

2010-02-04 Thread Michael Dorin
How could I setup an EditText field such that when it was selected for editing, all the text inside is selected so that it can be easily deleted. I have tried android:selectAllOnFocus, but it seems my field is only in focus once...when the activity is started.. it it is displayed selected anyway..

[android-beginners] path to "custom debug keystore"

2010-02-03 Thread Michael Dorin
Within Window->Preferences->Android->Build Is it possible to put a relative path to the custom debug keystore in based on your workspace path? (So not actually specifying your workspace path) For example, instead of c:\builds\workspace\project\keystore_dir have something like: $WORKSPACE\project\

[android-beginners] let user pick a location on a map..

2010-01-28 Thread Michael Dorin
Ok, wondering what thoughts people have for this idea. I would like to be able to let a user pick a location on a map. I would just as soon send a broadcast intent out and have somebody else's activity show the map and let the user pick it..and then somehow let my app know... Not sure how practic

[android-beginners] Is it possible direct users to a settings screen?

2010-01-26 Thread Michael Dorin
If one had an application that needed to know its location, and the location sensors were disabled, is it possible to encourage a user to re-enable and then give them a click-through to an android settings screen? Thanks, Mike -- You received this message because you are subscribed to the Googl

[android-beginners] alertdialog, under what circumstances will invoking .show directly cause problems?

2010-01-08 Thread Michael Dorin
When creating an AlertDialog...I have noticed in some cases, if you invoke .show directly, you get a leaked dialog error when you rotate the phone. In other cases you don't. If you don't call .show and use showDialog from the activity you don't see the leaked dialogs. Are there some cases when you

[android-beginners] launch an activity right into the background

2010-01-07 Thread Michael Dorin
Can I launch an activity and have it go strait into the background without the user seeing it, until they select to launch it themselves? Basically I have an application that takes a long time to start the first time, but is super snappy after that. -Mike -- You received this message because you

[android-beginners] How can I make a vew show up really, really fast?

2010-01-06 Thread Michael Dorin
I do a setContentView(R.layout.main); in my onCreate, but have a ton of other things to do before the onCreate finishes...and it take a lot of time for anything to show up on the display. Is there an easy way just to have the layout at least pop up then get filled so I don't have the delay? -Mike

[android-beginners] best way to handle dialogs during screen orientation changes

2009-12-31 Thread Michael Dorin
What is the best way to handle dialogs during screen orientation changes? Do you save then dismiss on the onDestroy() and recreate again on the new onCreate()? Seems like there should be an easy way to do this? Examples and thoughts are appreciated. -Mike -- You received this message because

[android-beginners] T-Mobile prepaid sidekick plan?

2009-12-23 Thread Michael Dorin
Anybody ever try the t-mobile prepaid sidekick data/text message plan on an android phone other than a t-mobile sidekick? I tried to buy it last night, but the salesguy would not sell it..as he said it would not work on my google developers conference android. Can that be true? Thanks, -Mike -

[android-beginners] C programming

2009-12-15 Thread Michael Dorin
Ok, I see all the examples on how to make a hello world program in c, but all of them have you do an adb shell to run it. Assume I want to have my c program do the useful things it already does and use java for the UI, how would I launch my c program? How do I bundle everything, java, c, into one d

[android-beginners] android/gears geolocation example

2009-10-04 Thread Michael Dorin
Hello, I am trying to run gears geolocation from a webview application. The page works fine on a pc, but I never get the lat/lon when run on android. Is there an easy to follow example out there for gears/geo location on adnroid? Thanks, Mike --~--~-~--~~~---~--~~

[android-beginners] Re: Emulator view in Eclipse

2009-09-28 Thread Michael Dorin
I ran into this... Don't remember where, but there is some parameter for configuring the emulator...and if it is visible by defaultFor some reason it is not set to visible. Can anybody else add? Look through emulator configurations. -Mike On Tue, Sep 22, 2009 at 2:57 PM, stanlick wrote: >

[android-beginners] make my own libraries

2009-09-19 Thread Michael Dorin
Hello, I am making libraries that I would like to use on different projects. So far I am just copying the code in... Is there an easy way to make a 'library' project...and I import? Thanks, Mike --~--~-~--~~~---~--~~ You received this message because you are sub

[android-beginners] Re: Must have missed something...1.5->1.6

2009-09-16 Thread Michael Dorin
your workspace in the > .metadata folder) > (it may be big, try to only post the end of it, or whatever part > contain the error) > > thanks > xav > > On Wed, Sep 16, 2009 at 5:51 AM, Michael Dorin wrote: >> >> I thought I followed all the instructions to update the

[android-beginners] Must have missed something...1.5->1.6

2009-09-16 Thread Michael Dorin
I thought I followed all the instructions to update the SDK. I have updated a couple projects and no errors are shown. When I attempt to launch though, I get: 'Launching ...' has encountered a problem. An internal error occurred during: "Launching ... " java.lang.NullPointerException I am runni

[android-beginners] When does one start to develop for 1.6?

2009-09-16 Thread Michael Dorin
I see 1.6 has been released...when is the right time to upgrade to it? -Mike --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegrou

[android-beginners] Re: How to debug crash on rotate

2009-09-14 Thread Michael Dorin
t you can handle that event with  the > onConfigurationChanged() handler. > > Hope this helps > > > On Sep 12, 10:30 pm, Romain Guy wrote: >> Hi, >> >> Have you looked at the logs to see the exact stack trace? >> >> >> >> On Sat, Sep 12, 2009

[android-beginners] How to debug crash on rotate

2009-09-12 Thread Michael Dorin
I have an application that crashes when the phone is rotated. It is based on the quickconnect framework. Sorry for the vagueness of this message, but how would I begin to debug what is happening? What should I look for? How do I gather a trace? It seems the crash comes at the onSuspend event. T

[android-beginners] Re: ERROR Resource entry main is already defined.

2009-07-06 Thread Michael Dorin
I think I figured it out. When you hit run, make sure you are in (editing) a java program, not an xml file. -Mike On Mon, Jul 6, 2009 at 4:54 PM, Coder J wrote: > > having same problem right now with something i built from scratch, > sometimes it does this and sometimes it dosent and it will jump

[android-beginners] ERROR Resource entry main is already defined.

2009-07-04 Thread Michael Dorin
I have been playing with HelloGridview, and basically got it to work with new png files. However, I decided to change the layout...main.xml, and made a mistake. Now I can't put it back! This file main.out.xml keeps showing up and I keep getting ERROR Resource entry main is already defined. I rec

[android-beginners] Re: more experimenting, new view

2009-07-02 Thread Michael Dorin
Mark, Thank you for the tip. I got WebViewDemo going...but not being content as to why that works and why mine didn't I dug a bit more. If anybody is interested...I changed the layout (see below for original) "wrap_contents" to "fill_parent", as was done in the WevViewDemo. That works. If any

[android-beginners] Re: more experimenting, new view

2009-07-02 Thread Michael Dorin
Yes, built in browser works fine. Did I mess up the manifest? (See below) -Mike http://schemas.android.com/apk/res/android"; package="com.example.hellowebview" android:versionCode="1" android:versionName="1.0">

[android-beginners] Re: more experimenting, new view

2009-07-02 Thread Michael Dorin
= (WebView) findViewById(R.id.webview); webview.getSettings().setJavaScriptEnabled(true); webview.loadUrl("http://www.yahoo.com";); } } On Wed, Jul 1, 2009 at 9:12 PM, Mark Murphy wrote: > > Michael Dorin wrote: >> Tonight's experimenting lead me to

[android-beginners] Re: more experimenting, new view

2009-07-01 Thread Michael Dorin
Actually, I thought in one iteration I had done that. I will try again and post. -Mike On Wed, Jul 1, 2009 at 9:12 PM, Mark Murphy wrote: > > Michael Dorin wrote: >> Tonight's experimenting lead me to the hello-webview tutorial. >> >> http://developer.android.co

[android-beginners] more experimenting, new view

2009-07-01 Thread Michael Dorin
Tonight's experimenting lead me to the hello-webview tutorial. http://developer.android.com/guide/tutorials/views/hello-webview.html I can't get that darn thing to work! I just get a blank screen. I have seen a few comments such as this posted, but I can't follow through to a solution. Thank

[android-beginners] happiness with .png files?

2009-06-30 Thread Michael Dorin
I am playing with grid layout tonight, following the example code posted by google. All is well with the code, but android does not like some of my png files. They are all about the same size...but when I put some into the 'grid', I get the application has stopped unexpectedly error. As I said,

[android-beginners] anyway to have sub-directories in the res/drawable folder?

2009-06-30 Thread Michael Dorin
Is there anyway to have sub-directories in the res/drawable folder? Right now if I add one, it is not recognized. However if I put all my png files right into drawable, I can see them. Thanks, -Mike --~--~-~--~~~---~--~~ You received this message because you are su

[android-beginners] Re: Bluetooth application...how does one get started?

2009-06-26 Thread Michael Dorin
android to an embedded device that has neither wifi nor eithernet. Any ideas? -Mike On Fri, Jun 26, 2009 at 3:49 PM, Mark Murphy wrote: > > Michael Dorin wrote: >> I need to write a bluetooth application for work.  Browsing the >> internet, there is tons of >> sometime cont

[android-beginners] Bluetooth application...how does one get started?

2009-06-26 Thread Michael Dorin
I need to write a bluetooth application for work. Browsing the internet, there is tons of sometime contradictory information on bluetooth applications. I was wondering what was available in the through java api, and where would I find the documentation on it. Thank you, Mike --~--~-~-

[android-beginners] Re: Problem running the Hello World example

2009-06-13 Thread Michael Dorin
I was/am having the same problem. I saw a post that said do a 'clean' then exit eclipse and go back in... then it should work. Let me know how it goes please. -Mike On Sat, Jun 13, 2009 at 8:22 PM, Fahd wrote: > > Hi All, > > I am pretty new to  android development. I followed all the > instruct

[android-beginners] Re: Problem with tutorials.

2009-05-18 Thread Michael Dorin
Hola Gabriel, I was/am having the same problem. Xavier gave me this not and link to follow: "Make sure you've followed all the steps at http://developer.android.com/sdk/1.5_r1/upgrading.html#UpdateYourProjects"; Which worked. The other thing that worked was to revert the sdk back to 1.1. I am

[android-beginners] Re: Upgraded SDK, now can't do helloAndroid project

2009-05-17 Thread Michael Dorin
;ve followed all the steps at > http://developer.android.com/sdk/1.5_r1/upgrading.html#UpdateYourProjects > > Xav > > On Sun, May 17, 2009 at 10:07 AM, Michael Dorin wrote: >> >> I just upgrade the sdk on my machine, now I can't recreate the >> helloAndroid pr

[android-beginners] Upgraded SDK, now can't do helloAndroid project

2009-05-17 Thread Michael Dorin
I just upgrade the sdk on my machine, now I can't recreate the helloAndroid project. I follow the steps, and get the following: [2009-05-17 12:04:57 - HelloAndroid] no classfiles specified [2009-05-17 12:04:57 - HelloAndroid] Conversion to Dalvik format failed with error 1 What did I forget to

[android-beginners] Can I develop android applications on a phone without service?

2009-04-05 Thread Michael Dorin
I am stuck on a sprint service plan for sometime. Is it possible to buy an Android phone and develop applications without having any service at all? Or is it possible to get a prepaid t-mobile sim and use wifi for the applications development? Thanks, Mike, --~--~-~--~~---

[android-beginners] Re: option menus id's

2009-04-04 Thread Michael Dorin
Wow...too simple! Thanks! -Mike On Sat, Apr 4, 2009 at 3:54 PM, Mark Murphy wrote: > > Michael Dorin wrote: >> I have created an options menu in xml. >> >> When an item is selected and I process a selection comparing to >> item.getItemId(), how can I get the id f

[android-beginners] option menus id's

2009-04-04 Thread Michael Dorin
I have created an options menu in xml. When an item is selected and I process a selection comparing to item.getItemId(), how can I get the id from my xml file? I can't seem to find any examples. I am about ready to click each option and write the id down that comes up, but that seems kludgy ev