If the GPS has been on and the user turns off the screen, there's nothing you can do to really get a better approximation to location.
Let's be realistic here: how accurate does your signal need to be? If it's pinpoint accuracy (within 60-200 m) then you should be getting constant fixes anyway. If it's not, then why is fixing the results of the output so bad? If you want a good trade off, I'd say to set up an alarm manager that requests location fixes at a coarse interval. Kris On Sun, Mar 10, 2013 at 8:33 AM, dashman <[email protected]> wrote: > Looks like AGPS uses WIFI and cell-phone tower locations. > > The problem for my app is that I don't necessarily have access > to data service - so AGPS will not work. > > Even though I want to do want AGPS does - i.e. provide a > start location for getting satellite queries. But my understanding > is that API is not available. > > > The real problem I have is that I allow users to > shut the screen off to save batteries and I stop the gps listeners. > > Then onResume(), I enable the listeners - and it's here where > the lock time is too much. > > Option #2. How about I NOT disable the listeners on onPause() - > but set the listener to every minute. > > I would think that would help maintain the lock. > > It would save the battery with the screen off. and maybe some > batteries wiith the gps being queried less often now. not sure > of the latter though. > > > > > > > > > > -- > -- > 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 > --- > You received this message because you are subscribed to the Google Groups > "Android Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > -- -- 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 --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

