开发者

Is SharedPreferences expected to be wiped of when Android's factory reset is performed?

I'm looking for storing some data in my app that needs to be wiped off when Factory reset is performed. Is SharedPref开发者_如何学Goerences the right storage to use for this purpose?


Yes, they will be wiped off. Database will be wiped off as well. The only data that will persist is whatever you store on SD card


Android's backup service
allows you to copy your persistent application data to remote "cloud" storage, in order to provide a restore point for the application data and settings. If a user performs a factory reset or converts to a new Android-powered device, the system automatically restores your backup data when the application is re-installed. This way, your users don't need to reproduce their previous data or application settings.

Refer Data Backup, you will get the complete details

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜