Assume a game app, where user loads some contents into memory during first open. Afterwards they can:
- Move app into background
- Lock device
- Close app completely
- Get a phone call
- etc...
Is there a way to know when our app's contents are no longer in memory or something of similar sorts to determine when re-caching of assets is required?
I studied few game apps and they tend to do one of the following
- Show loading screen every time app comes back from background
- Show loading screen only if device was locked or closed (app is still in the background)
And I'm interested in achieving no.2 to not show loading screens unnecessarily each time app comes back from the background.
from Determining if assets need to be re-cached in memory
No comments:
Post a Comment