Is it possible wrap EMDK to a library .jar instead of installing it for Android Studio?

// Expert user has replied.
J Jacek Rys 3 years 7 months ago
6 4 0

I am thinking of EMDK v4.0

Please Register or Login to post a reply

4 Replies

P Pietro Francesco Maggi

Hi Jacek,
as Billie pointed out, there's a nice guide in the documentation about about building a single APK able to use our EMDK and able to run on non Zebra devices.

The sample you found on github implement some of those methods in a slightly different way removing at all access to the EMDK library from the main activity.
My article was only about using SDK 23... the other stuffs in the sample are just some test :-)

~Pietro

J Jacek Rys

Hello Pietro,

the blog article that you provided seems to be an answer to my initial question.
I cloned this repository and managed to install "Get Device Info" app on Sony Xperia Z3 Compact (just to test it). After app launch I can see that EMDK runtime wasn't detected and it's good since Sony is not a Zebra device.

Now I need just a confirmation from your side:
if I include EMDK in the way described in the article will it be possible to run app (which uses EMDK features) on non-Zebra devices (like Sony Xperia Z3 Compact) so that I could see the Android SDK-related features only (design, check the activity lifecycle, etc...)? That's my main need.

Thanks in advance,

~Jacek

E Efkan YILMAZ

Hello Jacek, Something that is missing from that article is how to properly handle EMDK calls, and fail gracefully when running on a non-zebra device.  Have a look at this guide, which will show how this can be done.

EMDK for Android Programming Practices - Zebra Technologies Online Documentation

P Pietro Francesco Maggi

Hi Jacek,
I'm not sure to understand your question.

Take a look at this blog post if it fit with your request:

Ciao
~Pietro

CONTACT
Can’t find what you’re looking for?