Run a clock or timer even when app closes - Android
Ever played Candy Crush? Know how you run out of lives and have to wait 30
minutes to regenerate a new life and up to a maximum of 5? That is idea I
am trying to implement in my app but I am uncertain on how to have code
running even when the user closes app and/or phone.
My question is how to have a timer constantly running in the background of
phone until the timer hits X minutes. Would I use the Timer class for
this? Because I am familiar with that class and already have a form of it
implemented in my app.
No comments:
Post a Comment