Reputation: 24857
I am using a CountDownTimer to log a user out of my app after a specified time. I am wondering if the Timer keeps going even if my app is sent to the background or if the phone locks because the user put their phone down? If anyone thinks I should use a different timer method please let me know.
Thanks
Upvotes: 3
Views: 2541
Reputation: 237
The CountDownTimer wll not work when the phone goes to sleep:
http://groups.google.com/group/android-developers/browse_thread/thread/973bcb3bb806d13?pli=1
When I stopped using wakelock, the CountDownTimer never finished. Works with wakelock though.
Upvotes: 2