Capturing application usage time installed on Android

0

I wonder how I could capture the usage time for all applications installed on Android. There are some apps that do this in the Play Store. I've been doing several searches and found that there is a code that you can type and a list of programs appears, but I can not handle the result.

Would anyone know how I could do this? Whether dealing with the result of the "Easter Egg" or even a service to detect the time of use.

    
asked by anonymous 23.04.2014 / 15:41

1 answer

1

There is no official way to do this through the Android SDK. There is an answer in English for a similar question: How to Track App Usage on Android? How to detect when an activity is launched?

But by summarizing the answer, you may be doing pooling in the ActivityManager , but that would be fine bad from the battery point of view. And the crawl will only work after a run of your app.

If you want this information on your phone screen, you can type the code *#*#4636#*#* and go to (Testing -> Usage statistics). In addition, it is also possible to have information similar to what you want going in the battery consumption part.

    
22.06.2014 / 09:21