开发者

Android data storage

Hi in my application i have temporary data , currently am using application context for saving these data, but the problem comes when my app put in to background, i loss the data and my application crashing. any way to solve 开发者_StackOverflow社区this problem. With the normal flow i don't get any problem, these problem comes when my app put in to background for long time,when resumes app crashing.


It sounds like you need to persist your data when it's paused and repopulate your data when you resume your application.

You might want to take a look at the Component Lifecycles section of the Android documentation to figure out what would work best for your app.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜