Forum Xamarin Xamarin.Android

Integrating Motorola EMDK Barcode Scan

bijoybijoy USUniversity ✭✭


I am trying to do an application on Xamarin Android and wanted to integrate Motorola EMDK Barcode Scan with it. Please let me know, if in case anyone have already invented this wheel. Please help me as I am on a tight deadline.


Best Answers


  • bijoybijoy USUniversity ✭✭

    I am using Motorola MC 40 for the development.

    Thanks in advance


  • KirtisagarMalshetKirtisagarMalshet INMember ✭✭
    edited January 2015

    There are 2 approaches:


    • Use Zxing library to read barcode

    here is the sample barcode scanner I have created using Zxing in Xamarin.Forms: try to run this in your device.

    I hope this helps.

  • bijoybijoy USUniversity ✭✭

    Hi Kirti,

    Thanks for the reply. I checked the Zxing library. But my initial look says it will work only with Xamarin Forms. Unfortunately we dont use forms for our development.
    @kirti, Can you please validate my understanding?

  • @bijoy‌, The sample which I created is on Xamarin.Forms. Download the Zxing component, it has Native android sample.

  • Hello EricHamrick

    Il curious about the installing of the EMDK package,
    I need it to use the Scanner of a Motorola TC 55
    I'm working with Xamarin

    When I try to run the EMDK Installer, it says that there is no valid ADT root path

    I've tryied my Android path
    Also the Android/Tool path

    Does anyone know how I can install that EMDK to use with Xamarin (not eclipse)

    Thanks for any help

  • MilMil USMember ✭✭


    You have to use the Android SDK path. For me it was C:\Program Files (x86)\Android\android-sdk\
    And even if I am using Xamarin I had to add Eclipse because the EMDK installation wants the path.
    Hope that helped.

  • @MichaelWerlitz
    Hello Michael

    Finaly I didn't had to install EMDK

    I'm using this example that does not requires EMDK installed on the Host Machine

  • fernandopfernandop USMember ✭✭

    Hi @EricHamrick , where is the sample project? I need to be able to change (or at least read) the settings of the default profile in DataWedge app.

  • AlessandroCaliaroAlessandroCaliaro ITMember ✭✭✭✭✭

    @EricHamrick I would like to have the sample too.

  • RishitoshGourRishitoshGour USMember ✭✭


    I am using Xamarin.Forms and need to scan the bar code for motorola TC70 Device. I have intergrated the EMDK in Droid project and get the scanner value in scanner_Data method. When I press the scan button in the device it successfully triggers the scanner_Data event but the problem is How can i get this event in my PCL Xaml Forms. So that i will know the scanner button is pressed and xxx data is scanned. I used dependency injection by creating an interface in the PCL project and implement it on Droid project. But not able to get the object of class in PCL project Xaml Form. I use this line of code to get the object of implementation class.

    var currentLocationService = Xamarin.Forms.DependencyService.Get();
    //It gives me error like Default Constructor is not defined
    currentLocationService.positionChanged += OnDataScanned;

    //OnDataScanned: this is the method where i need to have return in xaml form.
    //PositionEventArgs is in my class
    private void OnDataScanned(object sender, PositionEventArgs e)
    //Debug.WriteLine("Got the update in ContentPage from service ");

    //CurrentLocationService is my interface contains in same PCL project and implementation of this interface is in the Droid Project.

    Please help! Thanks in Advance! Please try to give the step by step solution.

  • AlessandroCaliaroAlessandroCaliaro ITMember ✭✭✭✭✭

    do you have to send your barcode to PCL project? Use MessagingCenter

Sign In or Register to comment.