How to view battery usage settings in android?

I want to view the battery usage settings through the application settings β†’ about phone-> Battery usage

How to view this through the application, please help me

+4
source share
3 answers

To show the user information about energy use, you can get started with Intent.ACTION_POWER_USAGE_SUMMARY

Intent intentBatteryUsage = new Intent(Intent.ACTION_POWER_USAGE_SUMMARY); startActivity(intentBatteryUsage); 
+12
source

@Tamil, to turn on / off Bluetooth, you first need to make an object ("mBTadapter") of the bluetoothAdapter class, then call

mBTAdapter.enable ();

or

mBTAdapter.disable ();

programetically,

+1
source

settings-> about phone-> Battery Usage? I do not know what you mean. Can't you see the battery details this way?

0
source

All Articles