I would like to know whether an activity is locked under app pinning in android 5.0 and above programatically. Please help me in this!
Thanks!
I would like to know whether an activity is locked under app pinning in android 5.0 and above programatically. Please help me in this!
Thanks!
Method to get if the activity in lock task mode.
activityManager.isInLockTaskMode() API is deprecated in API level 23. Use the method activityManager.getLockTaskModeState() http://developer.android.com/reference/android/app/ActivityManager.html#getLockTaskModeState()
Hope this helps you!