Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intent for app storage settings

I'm trying to find out if there's an intent for the app-specific storage screen as seen below in the picture.

I tried the following code but it only opened the App Info screen:

Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
Uri packageURI = Uri.parse("package:" + myPackage);
intent =.setData(packageURI);
startActivity(intent); 

like image 476
SPatrickApps Avatar asked Mar 10 '23 03:03

SPatrickApps


1 Answers

This is not possible.

You can not go further than the app settings, using the Intent you posted. What you could do is explain the user how to clear the data before firing the Intent though.

like image 93
maxoumime Avatar answered Mar 21 '23 03:03

maxoumime