I got some issue when I developing an App.
After I minimized the app or turn the screen off, and open lot of other apps or reopen the phone after a long time. When I restart my app, it try to resume and keep showing the same page(with fragment). But the data I need was already been destroyed so it will be null. The data is an object array, I know maybe I can store them in db. But due to the data will update every time user click something. So I don't want to save it into data base, I guess that means lot of storage I/O witch is not necessary. I'm wondering if there is any solution to restart the hole app when things is destroyed? Or the only way to make it happen is I handle the null array and do the reload myself? I don't really want to do that cause I guess that will bring me many unexpected issues cause the data is related with many pages. Too many situations I have to consider when do switching pages.
Are there any advice?