Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //#1
- Intent batterySaverIntent = new Intent();
- batterySaverIntent.setComponent(new ComponentName("com.android.settings", "com.android.settings.Settings$BatterySaverSettingsActivity"));
- startActivityForResult(batterySaverIntent, 0);
- //#2
- Intent intent = new Intent();
- intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
- startActivity(intent);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement