How to Capture Usage Time of Apps Installed on Android

Asked

Viewed 618 times

0

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

Would anyone know how I could do that? Whether it’s treating the "Easter Egg" result, or even a service to detect time usage.

  • Vc means usage time (which the user spends within the app) or time since the app was installed?

1 answer

1

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

But summarizing the answer, you can be doing pooling on Activitymanager, but this would be pretty bad from a battery point of view. And tracking will only work after a run of your app.

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.