Creating Project using Visual Studio

RFID SDK for Xamarin (Android) 2.0.2.94

Overview

This tutorial will aid you creating a new Xamarin Android application project using Visual Studio.

This tutorial and project is using following requirements

  1. Minimum SDK Version - API 25: Android 7.1.1 (Nougat)
  2. Target SDK Version - API 29: Android 10
  3. Development environment .NET Framework 4.6.1
  4. Visual Studio 2017
  5. Xamarin Version 4.11.0.776

Creating The Project

  1. Start Visual Studio 2017 and select File > New > Project >Visual C# > Cross Platform or Android Follow the on-screen steps in Visual Studio

    img

    img

  2. Select the suitable options for project here we have choosen Android and Shared Project options

    img

Enable the RFID SDK in project

  1. Create RfidSdk folder inside the project
  2. Copy XamarinZebraRFID-2.0.1.16.dll in RfidSdk folder
    Note Rename the dll to XamarinZebraRFID.dll by removing any version information
  3. Add a XamarinZebraRFID.dll reference in to project reference from RfidSdk folder, browse the dll, click Add and then click OK

    img

  4. Now project has XamarinZebraRFID.dll reference added fine

    img

  5. Add further refrences to required libraries
    Note: AppCompatSupport library is mandotary for integrating the dll into application

Your project is now ready with RFID SDK for Xamarin (Android) Module

Import RFID API3 package

After completing the steps in Adding dependency in gradle.build

  1. Open MainPage.xaml.cs in editor
  2. Add using Com.Zebra.Rfid.Api3 in MainPage.xaml.cs
  3. 
    using Com.Zebra.Rfid.Api3;
    

Your project is now ready to use the RFID SDK for Xamarin (Android)