I am developing a utility based android application and need to know the last used time of another applications. I am able to manage the information using UsageStatsManager and its works fine.
https://developer.android.com/reference/android/app/usage/UsageStatsManager.html
But the problem is, it was added in API 21 and for the old version it does not work.
That's why I need another solution to get the informations for the API level before 21 i.e API 8/9 - 20. Is there any different solution to get the information like any hidden log file where the information stored by the system or something else.