Reputation: 422
I want to view battery usage setting through application settings->about phone->Battery use
How to view this through application please help me
Upvotes: 4
Views: 4324
Reputation: 819
@Tamil, to turn on/off Bluetooth, first u have to make object("mBTadapter") of bluetoothAdapter class, then call
mBTAdapter.enable();
or
mBTAdapter.disable();
programetically,,
Upvotes: 1
Reputation: 6353
To show power usage information to the user, you can start activity using Intent.ACTION_POWER_USAGE_SUMMARY
Intent intentBatteryUsage = new Intent(Intent.ACTION_POWER_USAGE_SUMMARY);
startActivity(intentBatteryUsage);
Upvotes: 12
Reputation: 66
settings->about phone->Battery use? i don't know you mean. you can not see the battery details in this way?
Upvotes: 0