tamil
tamil

Reputation: 422

How to view the battery usage settings in android?

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

Answers (3)

Abdul Wahab
Abdul Wahab

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

Sandy
Sandy

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

insomnia
insomnia

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

Related Questions