we all know how to save an Activity's state to SavedState via onSaveInstanceState before it is killed. but when the application has some global data will be used by all the activities. s开发者_运维知识库o I do not have a good method to save the global data. when the application be killed on the backgound.
You can consider storing the data in the shared preferences. This data will persist across the activites. check this using shared preferences.
精彩评论