Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open a specific application settings screen on Android?

I trying to figure out the intent values to open a specific application settings screen on Android, the one that allows you to "Clear Data", "Force Stop", "Uninstall"...

Thanks,

Adam.

like image 747
TacB0sS Avatar asked Aug 13 '12 20:08

TacB0sS


People also ask

How to keep the screen on when using apps on Android?

Here are some Android apps to keep the screen on when you are using your favorite apps. Let’s begin. There is a feature in Android settings that you can use to increase the sleep time so your phone will take longer before it decides to turn off the screen and autolock. Open Settings and go to Sleep under Lock screen & password.

What is settings Preferences screen in Android?

In many apps, we have seen the Settings screen which is most common in most of the apps. This settings screen is used to manage the preferences of the users. For creating this settings screen android provides a feature to make a settings preferences screen.

How do I manage default apps on my Android phone?

The process used to be much more complicated, but Google has turned managing default apps into an effortless task. It’s baked right into the settings. Just go into your Settings app, select Apps & notifications, click on Advanced, and then go into Default apps.

How do I Reset my App Settings on Android?

Confirm by tapping on Reset apps. Open the Settings app on your Android phone. Go into Apps & notifications. Tap on the See all apps option. Hit the three-dot menu button. Tap on Reset app preferences. Confirm by selecting Reset apps.


1 Answers

CommonsWare have answered the question. Here is code you can copy/paste directly and use:

Intent intent = new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
intent.setData(Uri.parse("package:" + getPackageName()));
startActivity(intent);
like image 67
powder366 Avatar answered Nov 14 '22 22:11

powder366