> "Best" is debatable - but you could use an AsyncTask that does whatever it
> is you need your GPS fix for and include getting a fix as one of it's steps,
> during which time you show an indeterminate progress dialog that says
> "Getting your current location ... please wait..." or something. That's what
> I do when the last known location will not suffice. Works well enough.
>

What I did is to setup a locationlistener, and assume that the gps
gets the fix only after the first update (when the onLocationChanged
is fired the first time).
You can also listen to the other callbacks like onStatusChanged in
order to decide if the gps is down again.

Hope this helps,

   Federico

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to