Installing EMDK for Android Studio
Installing Android Studio
- Go to https://developer.android.com/sdk/index.html
- Download
Android Studio 1.x
NOTE: Android Studio should be installed on your computer before running the EMDK for Andriod installer.
Installing EMDK for Android
NOTE: Before installing EMDK For Android Update 1, you must first install the full version, EMDK for Android v3.1 [EMDK-A-030109.exe]. To Obtain v3.1, go to https://portal.zebra.com/Support/US-EN, and search for
EMDK for Android
using Search Support. Download Version 3.1. Then follow the steps below:
Install version 3.1
If you already have v3.1 installed, skip to Install version 3.1 Update 1 below.
Run the EMDK 3.1 Installer as Administrator, Then Click Next.
Click I Agree after reading the License Agreement to continue the installation.
Click next or select a custom install location by clicking Browse and then click next.
Continue installing EMDK for Android in Android studio by selecting the
Use Android Studio
radio button ( As Shown ) and select Next.
Install version 3.1 Update 1
Run the EMDK 3.1 Update 1 Installer as Administrator, Then Click Next >.
Backup your samples, or select Next > to Continue.
Click I Agree after reading the License Agreement to continue the installation.
When instalation completes, select Next >
Then select Finish
EMDK for Android development with Android Studio
In order to enable EMDK development in your project, you must first add the EMDK library. The EMDK for Android library can be added to your project via one of the following three methods.
Specify the EMDK SDK add-on as the Minimum SDK in the New Android Studio Project wizard
Launch Android Studio
Select "Start a new Android Studio project" or File > New Project.
Enter "Application name" and "Company Domain" and Click Next
Select EMDK SDK add-on (ex: "Symbol Technologies, Inc.: EMDK API (16)") as the "Minimum SDK" under Phone and Tablet.
Complete the New project Wizard by Clicking Next > Next > Finish >Android Studio will display your project when Gradle build process is complete.
To verify that the EMDK has been added to your project.
Go to File > Project Structure.
Click on app under Modules in the Project Structure Window's left-pane.
Check the value of "Compile Sdk Version". It should be the selected EMDK SDK add-on (see below)
Symbol Technologies, Inc.:EMDK 3.0 (API 16):16
Symbol Technologies, Inc.:EMDK 3.0 (API 19):19
Another method to verifiy EMDK project integration is via the build.gradle file.
Open build.gradle (Module: app) from the left-pane. The compileSdkVersion should be assigned to EMDK SDK add-on.
Your project is now ready for EMDK development (see EMDK Help for more information on creating an EMDK app).
Import EMDK lib JAR as a Module
Starting with a previously created Project with a minimum API level of 16 or 19
Go to File > Project Structure
Press the button marked with "+" at the top-left to add a new module.
Select "Phone and Tablet Application".
Select "Import JAR or AAR Package" from the list More Modules then Click Next
Click Browse button and locate the EMDK jar file (com.symbol.emdk.jar) from the SDK add-on folder and click OK
The new module will eventualy appear in the left-pane of the project structure window.
Click on app in left-pane and select the dependencies tab
Press the button marked with the "+" at top-right to add select "Module Dependency".
Select "com.symbol.emdk" from the "Choose modules" dialog then Press OK.
The new dependency should be listed, now Press OK
Your project is now ready for EMDK development (see EMDK Help for more information on creating an EMDK app).
Add EMDK SDK add-on name as the Compile Sdk Version in Project Structure
Starting with a previously created Project with a minimum API level of 16 or 19.
Go to File > Project Structure
Select app in the left-pane and Properties tab.
Manually enter one of the following add-on names in the "Compile Sdk Version" depending on the API version (see below):
SDK add-on (API 16) name: Symbol Technologies, Inc.:EMDK 3.0 (API 16):16
SDK add-on (API-19) name: Symbol Technologies, Inc.:EMDK 3.0 (API 19):19
Click OK then Select Yes in the resulting dialog.
Your project is now ready for EMDK development (see EMDK Help for more information on creating an EMDK app).
Importing EMDK Samples into Android Studio
Starting at the Android Studio Welcome Screen, Select "Import Non-Android Studio project"
- Locate the EMDK Samples path.
For example: "C:\Users\Public\Symbol EMDK for Android\v3.0\Samples\ADT".
Select the preferred sample, and press OK.
Click Next and then Finish to complete the import wizard.
When Android Studio has completed the Gradle build, your sample project will be displayed.
From the Build menu, select Rebuild Project.
Connect a Symbol Android device via USB, and select Run from the Run menu.