How to Disable or Manage Android Clear Data

Standard

You have to add this part to your manifest file:

android:manageSpaceActivity=".ActivityOfYourChoice"

and then instead of "Clear Data", there is a button for "Manage Space" which launches ActivityOfYourChoice.

Also you can make a fake activity that do nothing:

public class ActivityOfYourChoice extends Activity {

 @Override
 protected void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);

 finish();
 }
}

4 thoughts on “How to Disable or Manage Android Clear Data

    • Unfortunately no, but there is no use cause it would be some static tags!

      You can check the intent that cause your Activity to open:
      getIntent().getAction()

      in this case it would be:
      android.intent.action.VIEW

Leave a Reply

Your email address will not be published. Required fields are marked *