I need to get info about recent apps usage.
Before API 21 it was used getRunningTasks or getRecentTasks to get this info. These methods were deprecated in API 21 according docs.
There is UsageStatsManager class now, introduced in API level 21.
But! Context.getSystemService(UsageStatsService) was added only in API level 22!
The question is - how to get needed data in API 21?? According dashboards, there is 13% of users at this API level, I don't wanna lose them.