I'm making a simple timer as a part of an Android app using a handler to call a runnable which updates the UI. However, when the user changes the screen orientation, the app restarts. I looked into onSaveInstanceState(), but that won't help me.
I notice that some video player apps continue to play video during screen orientation change. Is it possible to similarly keep my activity running? I don't want my timer to stop running when the user tilts their phone.
Any ideas on how to fix this? (apart from fixing the screen orientation)
Thanks!