How to open Battery Use in About Device part of Settings Programatically in android?

前端 未结 2 1467
别跟我提以往
别跟我提以往 2021-01-13 21:54

i am developing an android app where i want to open the Battery use intent which is present in About device part of settings programatically. I am using the below code for i

2条回答
  •  广开言路
    2021-01-13 22:36

    Intent intentBatteryUsage = new Intent(Intent.ACTION_POWER_USAGE_SUMMARY);        
    startActivity(intentBatteryUsage);
    

提交回复
热议问题