I am used SQLite database in my application and i insert the user details in my table and show to listview control, but when i clicked clear data button in Application settings i lost my insert value,how to prevent this,any one help for me. thanks
Asked
Active
Viewed 2,966 times
3
-
sorry you can't do that – Kalpesh Lakhani Dec 07 '13 at 10:30
-
There is no way you can do that. Only system apps can. – Siu Dec 07 '13 at 10:31
-
You can't override the phone settings from the app. – Joel Fernandes Dec 07 '13 at 10:31
-
Read this..http://stackoverflow.com/questions/16476623/sqlite-database-deleted-when-i-clear-data-from-application – Shadow Dec 07 '13 at 10:34
-
Answer here - http://stackoverflow.com/questions/6531173/how-to-disable-the-clear-data-button-in-application-info-of-manage-appliaction – Shirish Herwade Apr 21 '15 at 16:14
1 Answers
4
You Cant do that
But ,instead of the clear data , Manage Space will visible in the Settings Screen To do this,add this to your application tag in the manifest file..
android:manageSpaceActivity="com.packagename.appname.activities.ManageSpaceActivity"
When you invoke that button your appr ManageSpaceActivity will be launched

Community
- 1
- 1

Jagadesh Seeram
- 2,630
- 1
- 16
- 29
-
Thanks, but any OS related issue is occured in my application future? – Rajarampandian Dec 07 '13 at 12:25
-
I guess No, but this is just a replacement of the clear data :) – Jagadesh Seeram Dec 07 '13 at 12:28