On Thu, Sep 8, 2011 at 5:25 AM, ndiiie 90 <rnd...@gmail.com> wrote: > - I have a countdown timer which is ticking until it counts to 0 (to a > specific time, lets say until 00 midnight)
Why? > - It will tick correctly by calculating the destination time with user's > phone time If your goal is to get control when the time elapses, use this calculation to determine a number of milliseconds from right now, then use AlarmManager and ELAPSED_REALTIME (or ELAPSED_REALTIME_WAKEUP). > - But if user change the phone's time manually, how can I resolve this case? Use a timing mechanism that is not dependent upon the real-time clock, such as the aforementioned AlarmManager or SystemClock.elapsedRealtime() or whatever. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in Oslo: http://bit.ly/fjBo24 -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en