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 :-)
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.
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
4 Replies
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
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
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
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