For example: in the Activty A I have a Chronometer, I click on play to start it and when it arrives at 00:00:10 I decide to go to Activity B. I stay on it for 30 seconds before returning to A. I would find the timer paused still displaying 00:00:10, but I’d like to see it still running and then at 00:00:40. How can I do this? How can I avoid the timer pausing on the change of Activity?
For example: in the Activty A I have a Chronometer , I click on
Share
(Based on the answer given for Get time of chronometer widget, with code for and extra activity added.)
The main activity:
The other activity to switch to:
And finally the manifest: