How do you keep a Countdowntimer running even if the app is closed?

To keep the timer running while the app is closed, you need to use a service . Listen to the broadcast of the service in the activity. See this SO answer to learn whether registering the receiver in onCreate, onStart, or onResume is right for you.

Leave a Reply

Your email address will not be published. Required fields are marked *