I am facing bugs in my application that only show up after the application has been running in the background for many hours. Some times “many hours” are 24 or 36. It is very difficult to try to fix those bugs if I have to wait that long. What are my options? Thank you.
Share
I know of one way which unfortunately is dependent on Android version and provider ROM.
Set this, then put your app in the background. Your activity will be destroyed immediately. Then resume your app. The bugs will show.
You might also want to review how and when to save instance state between onPause() and onResume()