Here is how I enabled my listener.  Is it the 15000 or 2 that turns it off
to conserve battery?  I thought it said not to use anything under 60000.
 But if that shuts off the GPS for a minute why don't i see that with other
GPS applications?  Do people put 0 in this field (or some other small
number)?

          locMgr.addGpsStatusListener(this);
          locMgr.requestLocationUpdates(LocationManager.GPS_PROVIDER, 15000,
2, this);

thanks for the info



On Thu, Jul 22, 2010 at 5:01 PM, TreKing <[email protected]> wrote:

> On Thu, Jul 22, 2010 at 3:48 PM, ecforu <[email protected]> wrote:
>
>> What causes the GPS icon to disappear?
>
>
> AFAIK, not using the GPS. This could be either there are no more registered
> location listeners using the GPS, or the ones that are registered have a
> time or distance limitation in which they turn off to conserve battery.
>
> My guess is you specified a time or distance restriction when registering a
> listener and it's turning on and off based on that.
>
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
>
>  --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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