1

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.

Himanshu Mori
  • 873
  • 1
  • 10
  • 20
  • do you want to see the lunch count from the app? – stinepike Oct 06 '15 at 08:58
  • Why not save the latest launch date/time in the SharedPreferences along with a counter? If you've already tried that and it didn't work, please explain the specific problem(s) you encountered, along with the relevant code. – Michael Oct 06 '15 at 09:02
  • @Michael i am using UsageStatsManager for getting time spent on any application with desired date or time. But here i am not getting any Launch count detail of any application. – Himanshu Mori Oct 06 '15 at 09:38

1 Answers1

-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..

Community
  • 1
  • 1
Shree Krishna
  • 8,474
  • 6
  • 40
  • 68