Saturday, September 22, 2012

[android-developers] Best strategy in handling location change

Currently, I'm creating an app which alarms user tasks at specific time. The time is automatically calculated based on coarse location. So, when users fly miles away, the alarm time has become invalid. So the app needs to recalculate the time. FYI, the alarm should be always on (when exiting the app, the alarm is still set).

To solve this, I don't want to listen for coarse location change since it eats my battery. Instead, my strategy is by starting alarm each 2 hours just to start a location listener (to fix the task alarm). What do you think of this strategy?

How to prepare an alarm only once? Can I check if I've done it?

Those are my questions.

Thanks...

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate