I've seen in some places that it is okay (or even advisable) to persist data in the onPause() method.
Like here
https://stackoverflow.com/a/41778266/3913107
and here
https://stackoverflow.com/a/29496430/3913107
However, the documentation states:
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()
https://developer.android.com/guide/components/activities/activity-lifecycle#onpause
What am I missing?