开发者

Stopping user from deleting the database

开发者 https://www.devze.com 2023-03-16 16:23 出处:网络
In android 2.2, we cannot disable the \"Clear data\" button in Manage Application, My requirement is like I have to stop user to delete the database. I done lots of go开发者_如何学Googling for this, b

In android 2.2, we cannot disable the "Clear data" button in Manage Application, My requirement is like I have to stop user to delete the database. I done lots of go开发者_如何学Googling for this, but i cannot get any proper answer.


Basically, you should prevent user deleting some vital for your application data by managing the storage right and being able to reload data that can be removed by the user. You can't prevent a user removing your app's data, it's a user's right if he wants to get more free space on his phone. This resource should help you manage your data.

0

精彩评论

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