I have two apps that take advantage of GPS.   The recommendation of
the SDK is for setting up the location listener is to set time at
60000ms or 1 minute.   My tests show if you use that number when
exiting the app it may not shutdown GPS.   Even using the call to stop
location updates when onStop is called doesn't necessary help.  In
fact one test app doesn't have that call and may shut down anyway on
exit.   When the number is reduced (as in some examples I found
online) to 100 ms then it usually always shuts down.  IOW, the
satellite icon disappears as it should.  I've read some posts here and
elsewhere but this issue seems to still be open.

Correct me if I'm wrong but I would think the 1 minute update might be
appropriate for a program that will stay open for awhile.  My users
may only look at the program temporarily and not need updates over a
long time.  So I'm thinking of leaving the value at 100 ms which seems
to work.

Thoughts?

- Brian

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