I am using a timer in my app. I wish to vary the interval or period with which the timer task runs. Like when my app is being used the timer task is scheduled at say 1 sec while the moment user exits the app the service changes the timer to 5 seconds.
Currently, I am cancelling the previous timer and create a new timer instance with new period. I dont know if this is efficient way to do it because for some reason the timer messes up and it sometimes hits more than twice per second..when its suppose to hit every 5 seconds. Is there a better way to vary the interval or period by using the same timer variable through out? My Timer is in the service which I have created to run in the background. -- 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