I've been searching for a really simple, straightforward example of how to deal with a process getting destroyed (like when flipping the keyboard open or leaving the app open in the background for too long). I've seen lots of vague references to OnCreate and OnResume and I feel like I have a general grasp of what happens, but I can't find any examples that implement it in an understandable way.
Does anybody have or know of a code example specifically for illustrating this feature? I'm not sure if I have to specifically save data on the screen and reload it in some kind of manual way, or if there are functions built into the API that memorize and reload that data automatically... I'm just totally confused.
I'd like to see an example of functioning code that does nothing more than properly implement this, with the functions that are called during the destroy and the ones that are called during the recreate. Does anybody have something that might help me wrap my brain around this concept? Even if somebody could just point me to the methods involved with this process in one of the google supplied samples, that would probably be enough.