How to find out about battery usage in my Android app

can someone say how to find out battery usage in my android application

+4
source share
2 answers

The documentation states that you can register for an event of a change in battery status.

You can see it in the following place:

http://developer.android.com/reference/android/content/Intent.html#ACTION_BATTERY_CHANGED

0
source

You can get battery information using BatteryManager.

The Battery Information link opens.

0
source

Source: https://habr.com/ru/post/1396136/


All Articles