Skip to content Skip to sidebar Skip to footer

Count How Many Times Every App Is Used In One Day Using Usageevents, Usageevents.event And Move_to_foreground

With UsageStatsManager and UsageStats I'm able to obtain the daily usage (in hours, minutes and seconds) of every app on my smartphone. Now I want to know if there is a way to obt

Solution 1:

hello i was trying this code, i also got the same problem on whatsapp, but i try to remove this code

System.out.println(eventAux.getPackageName()+" "+eventAux.MOVE_TO_FOREGROUND );

and it work, the count is correct, thank you

Post a Comment for "Count How Many Times Every App Is Used In One Day Using Usageevents, Usageevents.event And Move_to_foreground"