Hi!

I am writing a little app, that needs to poll location every n minutes
(usually every 15 or 30 minutes), do some logic with that information
and store something into the db. There is a GUI to all that of course,
but obviously I dont want that to run in the background as well. Just
the polling and that little logic.

So my main question in regards to that, how would you write that if
you wanted to keep bat usage low.

At first I thought about the

LocationManager.addProximityAlert(..) method, but then I read that
that will be polled every 4 minutes which I  dont need. Or does that
not use additional battery because the phone notifies all listeners
anyway?

Or should I try to create a kind of service thread that polls every
(n) minutes and sleeps in between, would that save battery?

Thanks very much, an experienced opinion is appreciated!
CC

ps.: And - how do I create such a polling thread?

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