Skip to content
Advertisement

Tag: usage-statistics

Android: get UsageStats per hour

I use UsageStats feature of Android, but the smallest interval is DAILY INTERVAL. How can I get UsageStats in an hourly interval? Answer All credit goes to this answer. I have learned from that one. How can we collect app usage data for customized time range (e.g. for per 1 hour)? We have to call queryEvents(long begin_time, long end_time) method

Advertisement