Android 4.x app won't run on Samsung

I have an Android 4.x app built on com.symbol.emdk running fine on Motorola but the same app won't and load on another type of device. How do I make this app cross platform compatible?

 

I was thinking of using EMDK FOR XAMARIN but it may require extra effort since the app is already built.

Anonymous (not verified)
Hi,If you are building an

Hi,

If you are building an Android native application then you can include the jar file as a provided dependency in your gradle file as described here: EMDK for Android Programming Practices - Zebra Technologies Techdocs

You can then detect whether or not the EMDK class exists at runtime with some form of shim, I do something similar in this application here: EnterpriseBarcodePoC/EMDKProxy.java at master · darryncampbell/EnterpriseBarcodePoC · GitHub

Also, make sure you specify that the library is not required in your manifest file:

<uses-library android:name="com.symbol.emdk" android:required="false"/>

I'm not sure how to do it with Xamarin however since I have never tried, I do not think it would be possible because of the way Xamarin components are built into the application.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments