Hi,
I would like to disable the option dialogs in my app if the scanner is set to kiosk mode.
How can I detect this and act accordingly?
I'M using EMDK for Xamarin 2.7
Thanks in advance
Best Regards
Uwe
EMDK for Xamarin: How can I detect an active Kiosk ModeHi, I'M using EMDK for Xamarin 2.7 Thanks in advance Best Regards |
Subscribe to email updates
Monthly updates from our Zebra development team, straight to your inbox.
1 Replies
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"
Javier Molina
Technical Architect, Kutir Mobility
Posted on behalf of Zebra Technologies