On 5/13/10, TreKing <[email protected]> wrote:
>> 2) What is the best way to display a "please wait" message or something
>> along those lines while the GPS service is attempting to get a fix (and
>> ideally periodically allow the user to cancel out)?
>>
>
> "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.

Every time the gps is started, will it fire the GPS_EVENT_FIRST_FIX if
a fix was previosly taken? What I mean is that if the answer is no,
then how do we know in the GpsStatus.Listener that we have a fix? And,
if the list of satellites informs that none of them has been used for
getting the fix, will the GPS engine try to get another fix?

Sadly, the doc it's not clear enough to me. I'm trying to understand
how the thing works. First, I read about GPS, the first fix
definition, almanac/ephemeris, cold-start, etc that are more general.
But I don't know how the android engine works.

I also noticed that if you set minTime!=0 in requestLocationUpdates()
the GPS engine will be turned off, then it will be started and you
will get bounced values. Setting it to 0 will eat your battery, but
you can measure more accurate values (and turn it off if you want with
a button).



-- 
If you want freedom, compile the source.

Sebastián Treu
http://labombiya.com.ar

-- 
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