D
D
Dima Dema2021-05-05 16:37:35
Android
Dima Dema, 2021-05-05 16:37:35

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));


The numbers I'm trying to get are in the screenshot - https://drive.google.com/file/d/1oH_PKpGvTs2tCIdtB...

Java code example needed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arsen, 2021-05-16
@Martian97

You can see the Memory Profiler, it is in Android Studio

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question