0

I want to load battery saver menu from an activity programmatically on Samsung J3 device with android lollipop. I have tried the following snippet:

Intent intent=new Intent(Settings.ACTION_BATTERY_SAVER_SETTINGS);
startActivity(intent);

but it throws ActivityNotFoundException.

any other way to programmatically load battery saver screen on J3 device?

Sabid Habib
  • 419
  • 1
  • 4
  • 16

1 Answers1

0
/**
     * Activity Action: Show battery saver settings.
     * <p>
     * In some cases, a matching Activity may not exist, so ensure you safeguard
     * against this.
     */

See google documents, your devices can not support this activity. https://developer.android.com/reference/android/provider/Settings.html#ACTION_BATTERY_SAVER_SETTINGS

Tung Tran
  • 2,885
  • 2
  • 17
  • 24