How to prevent a shared preference from being clear in setting
I don't want to let Settings clear my app sharedPreference by anyone: is it possible? hey buddy i found an answer here is a way to prevent data being cleared from Shared Preference Add android:manageSpaceActivity=".ActivityOfMyChoice" to the application tag of your Manifest like: <application android:label="MyApp" android:icon="@drawable/icon" android:manageSpaceActivity=".ActivityOfMyChoice"> Then instead of "Clear Data" , there is a button for "Manage Space" which launches ActivityOfMyChoice it will call my activity and the Activity is finish at creation :) public class ActivityOfMyChoice