Saturday, 28 September 2013

Android - How to test onResume()?

Android - How to test onResume()?

I'd like a way to easily take an app and put it into a saved state mode
(on an actual device) so that I can resume the app and thus test the
onResume function. On android devices, when one exists an app, it does not
instantly save its state; instead, it keeps the app running for quite a
while in case you decide to return to it shortly. This causes the onResume
function to not actually be called. Instead of having to wait that long
period of time with the app out of focus before the OS decides to save its
state, I'd like a way to quickly tell the OS to do this. Any suggestions?

No comments:

Post a Comment