How to Resume Activity from Previous state after handling Incoming Call in Android?

拟墨画扇 提交于 2019-12-01 14:37:54

You should read how to handle runtime changes.

Basically, under some situations your Activity will be recreated. To preserve state you can pass objects between old and new Activity, using onSaveInstanceState() in old activity and onRestoreInstanceState() in new activity.

Check out Saving Cache Files. Save your images on pause and restore them on resume.

You should probably cache the files, so it works like this, check if files already exist, if not download, when files exist load pictures,

http://developer.android.com/guide/topics/data/data-storage.html#ExternalCache

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!