Top "Usagestatsmanager" questions

UsageStatsManager provides access to Android device usage history and statistics.

How to use UsageStatsManager?

Background Google has deprecated the function "getRecentTasks" of "ActivityManager" class. Now all it does is to get the list of …

android usage-statistics activity-manager android-recents usagestatsmanager
How to check if "android.permission.PACKAGE_USAGE_STATS" permission is given?

Background I'm trying to get app-launched statistics, and on Lollipop it's possible by using the UsageStatsManager class, as such (original …

android permissions usage-statistics android-recents usagestatsmanager
How to get Usage Access Permission programmatically

My app needs to have Usage Access Permission in order to get information about the current running app on user's …

android android-security usagestatsmanager