Interface Not Reloaded After Returning To App From Back Press
Solution 1:
Each Activity has own lifetime cycle from onCreate to onDestroy. Take a look at picture and very detailed article here: Activities Lifecycle
Your activity go though cycles and die automatically when user pressed PowerButton or BackButton. When you turn power or relaunch then activity starts from begin (onCreate).
You should implement save and load functions and save state on onPaused callback and load state onResume callback. It will prevent from loosing state of your activity between restarts.
Solution 2:
The question kinda got put on the backburner as I worked on other areas of my app. It turns out the solution was a simple one: the pos variable as listed in the code was static, so the while loop could not reclimb from 0-10. Here's the answer: Even though onCreateView runs again, View does not properly reassemble after BACK press?
Post a Comment for "Interface Not Reloaded After Returning To App From Back Press"