Using Android apps

How to get usage statistics for apps on Android? I want to access the time (in milliseconds) that each application uses.

thanks

+4
source share
3 answers

Copy the source to the "spare parts" and see how they do it.

(also copy it from the emulator, install it on your phone and make sure it works)

Note: while this remains accurate for the Android versions in 2010 that were written about, restrictions added years later in 4.4 and 5.0 would significantly hinder achieving this in later versions.

+1
source

You can use TraceView . Did you mean programming?

In programming, you can check how SpareParts does it .

0
source

@ Joao Lopez, Chris Stratton

Google Provide sample code AppUsageStatistics example

Here, the complete statistics are based on daily weekly monthly uses.

0
source

All Articles