According to the Android documentation in this link https://developer.android.com/guide/components/activities/activity-lifecycle.html:
onPause() execution is very brief, and does not necessarily afford enough time to perform save operations. For this reason, you should not use onPause() to save application or user data, make network calls, or execute database transactions; such work may not complete before the method completes. Instead, you should perform heavy-load shutdown operations during onStop().
What I don't understand is, how is it managed to make the execution of the onPause() method very brief ? As far as I know, when the onPause() method get called it won't be finished until it executes the lines of code within it. Or am I wrong?
from How the onPause() execution is very brief?
No comments:
Post a Comment