Answer the question
In order to leave comments, you need to log in
How to programmatically find out how much power each application consumes on Android?
Tell me please. How can I programmatically find out how much power each application consumes in Android (JAVA)?
As I understand it, I still have to first ask the user for access rights to "Usage Statistics" using the following code:
startActivity(new Intent(Settings.ACTION_USAGE_ACCESS_SETTINGS));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question