Sunday, September 23, 2012

Re: [android-developers] Best strategy in handling location change

Hi,

This is a wild guess, totally out of my knowledge, but do you think listening to android.intent.action.TIMEZONE_CHANGED gave you means to act accordingly to your needs?

--
H

On Sep 23, 2012, at 9:59 AM, Ichsan <ichsan@gmail.com> wrote:
> 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?

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