android - SharedPreferences在手机清理垃圾时候会被删除吗?
ringa_lee
ringa_lee 2017-04-17 17:36:26
0
3
822

有些东西需要保存在数据库里,但是感觉数据库有点麻烦,想存到SP里面,但是又疑惑Sp什么时候会被删除掉呢?比如说用安全卫士等软件清理手机的时候会被删除么?

ringa_lee
ringa_lee

ringa_lee

reply all(3)
刘奇

1.SharedPreferences are stored in the private directory of the application. Under normal circumstances, other applications have no operation permission. No need to worry.
2. Uninstalling the application or clearing application data in the system settings will clear SharedPreferences.

Ty80

No. This is application data, not garbage. It will only be deleted when uninstalling the APP

PHPzhong

No, the way to clean up junk on your phone is usually to clean up the cache folder. The Xml file saved by sp will be deleted when the APP is uninstalled.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!