Android Lollipop has provided the UsageStatsManager
service which allows apps to get information about device usage statistics, as long as the user of the device has granted the required permission through the Settings
.
Is it possible to find out programmatically if the user has granted us the permission?
Thanks.