0
public void opensettings(View view){
    Intent opensettingsapp = getPackageManager().getLaunchIntentForPackage("com.android.settings");
    startActivity(opensettingsapp);
}

What i've done wrong here?I try to open a submenu of an app but the app stop working.

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
  • Which submenu do you want to open? – Rutvik Bhatt Jun 19 '18 at 09:21
  • what is meant by submenu ? – A.s.ALI Jun 19 '18 at 09:22
  • Possible duplicate of [Opening Android Settings programmatically](https://stackoverflow.com/questions/19517417/opening-android-settings-programmatically) – Reaz Murshed Jun 19 '18 at 09:55
  • I find what i need public void action(View view) { startActivity(new Intent(Settings.ACTION_APPLICATION_DEVELOPMENT_SETTINGS)); } .But how can I open this if i didn't activate this manually from menu(by pressing 5 times on build version) ? There is an app on Google Play that opens it without activate it manually...so there must be a solution –  Jun 19 '18 at 11:43

0 Answers0