Integrating Motorola EMDK Barcode Scan

bijoybijoy USUniversity ✭✭

Hi,

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.

Thanks,
Bijoy

Best Answers

Answers

  • bijoybijoy USUniversity ✭✭

    I am using Motorola MC 40 for the development.

    Thanks in advance

    ~Bijoy

  • KirtisagarMalshetKirtisagarMalshet INMember ✭✭
    edited January 2015

    @bijoy‌,
    There are 2 approaches:

    OR

    • Use Zxing library to read barcode

    here is the sample barcode scanner I have created using Zxing in Xamarin.Forms: https://github.com/kirtisagar/BarcodeScanner-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 ✭✭

    @olibara

    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

    https://developer.motorolasolutions.com/community/android/android-forums/android-blogs/blog/2014/11/06/scanning-barcodes-in-your-xamarin-android-app

  • 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.
    thanks.

  • AlessandroCaliaroAlessandroCaliaro ITMember ✭✭✭✭✭

    @EricHamrick I would like to have the sample too.
    Thanks

  • RishitoshGourRishitoshGour USMember ✭✭

    Hi,

    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.