In my new app i need to manage time while the user is not in the app.
For example, when the user leaves the app and comes back an hour later, a task they wanted done is now done after that hour.
What is the best way to make this happen?
In my new app i need to manage time while the user is not in the app.
For example, when the user leaves the app and comes back an hour later, a task they wanted done is now done after that hour.
What is the best way to make this happen?
Making data persistent in android Like Simon said, store a timestamp when app closes or your task is started then when you resume compare it to that time stamp to discover the elapsed time.