How to get Launch count of any installed applications in API level 21 or higher?

时间:2015-10-06 08:55:53

标签: android

Is there any way to get that how many times an application was launched "today". we can use *#*#4636#*#* to get App usage statistics.

But in my case how i can get launch count programmatically. And i think there will be no legal way to get these details.

do anyone know how to do it with any kind of Code arrangement ??

NOTE:: i need solution only for API level 21(lollipop) or higher. for rest of the lower API level i can manage.

1 个答案:

答案 0 :(得分:-1)

Have a look at this Answer..

You might get the solution of what you want. You can use shared Preferences or any other local database (sqlite) To save the number of times the program has been launched..