Is there any way to get current running foreground application (package) for all available OS?
问题 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