I know, too many questions already raised on this topic but, that are not supported in all OS / devices
Question
- Is there any way to get current running foreground application (package) for all available OS?
- How AppLock works (how it detects any app launches)?
What I have tried (but failed)
- How do I detect if an android app is launched? - Google has disabled in Android L.
- How to use UsageStatsManager? -
android.permission.GET_TASKS
is depricated. - How to make my app a device owner? - Cannot execute this command pro-grammatically.
- ?
- Knox Standard SDK
What I want
- User should not able to access black listed app. My app should launch in front of black listed app (as same as AppLock does)
- User can only access apps, that are white listed.
- I have tried many more solution, but not able to get perfect solution that can work in all available OS / devices.
- I want solution programmatically / free / for each device and OS