When our OnCreate Activity lifecycle method is called, we call the Activity's SetContentVeiw() method, which will pull in the layout we created previously in Main.axml. Now lets add some global variables to the MainActivity class for later use. Start by opening up our MainActivity, select Solution pane > "Project Name" > MainActivity.csĪdd a using directive that references the Symbol EMDK for Xamarin Now switch back to Design view to see our completed User Interface. Now add the following xml to the source view: Select and delete all xml in the source view. Switch from Design view to Source view by selecting the Source Tab in the bottom left corner of the Form Builder Wait for the layout to load in the Form Builder. Open our main layout by selecting Solution pane > "Project Name" > Resources > layout > Main.axml Now lets build our User Interface by opening our main layout file and modifying the underlying XML.
Your completed Dimens.xml should resemble the following Now open the new Dimens.xml file, add the following xml. In the center pane of the Add New Item dialog, select XML File.Įnter Dimens.xml in the Name: field, then click Add. In the Solution pane, expand the Resources folder, right click on the values folder, and select Add > New Item. Next we will add new Resource file that will hold a few Dimension values that will be used to properly position our UI elements. Your completed Strings.xml should resemble the following: Open the Strings.xml file by selecting Solution pane > "Project Name" > Resources > values > Strings.xmlĪdd the following xml inside the resources node. The Strings we add will be use as static text for our TextView UI labels. Lets begin by adding some new strings to our Strings.xml Resource file. Your completed AndroidManifest.xml should resemble the following: Now add a uses-library tag inside the application node.
ZEBRA BARCODE SCANNER ANDROID
Open the AndroidManifest.xml in your project from the Solution pane > "Project Name" > PropertiesĪdd a new android permission directly below the uses-sdk line. Perform the following steps to setup your AndroidManifest
In order to use the Symbol EMDK for Xamarin in your project we first need to add a few items to the AndroidManifest.xml in your project. Add Symbol EMDK Componentįollow this guide to add the needed component you your project. When creating a project for this tutorial use the project name BasicScanningTutorialįollow this guide to create a new project in Visual Studio.įollow this guide to create a new project in Xamarin Studio.
ZEBRA BARCODE SCANNER INSTALL
Prerequisitesīefore starting this tutorial you must install the following software. The API uses Barcode Manager, which is the primary object to access barcode scanning feature. This guide will walk you through creating an EMDK For Xamarin application that will use Barcode/Scanning APIs to perform Scanning operations on your Symbol Android devices without using Profile Wizard.