I don't think there's an API specifically for that, but you can find if EHS is the default launcher. If that is enough for your use case, here's some sample code to get the current launcher (from How to get the package name of current launcher in android? - Stack Overflow ):
PackageManager localPackageManager = getPackageManager(); Intent intent = new Intent("android.intent.action.MAIN"); intent.addCategory("android.intent.category.HOME"); String str = localPackageManager.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY).activityInfo.packageName;
The package name for EHS is (as of today, subject to change) "com.symbol.enterprisehomescreen"
Technical Architect, Kutir Mobility
Posted on behalf of Zebra Technologies
thansk for the information. Unfortunately this is not sufficient. I would need to know if we are currently in Admin or User mode.
Looks like I have to implement some sort of Admin-Mode myself into the app. Pity...