Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Sending ZXING generated barcode/QRcode to a Bluetooth Printer

My first question, Is there a way to use the Zebra SDK with any other Printer?? Second, Here is a very simple code,

using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using Android.Graphics;
using ZXing;

namespace QR_Code_Scanner
[Activity(Label = "QR_Code_Scanner", MainLauncher = true, Icon = "@drawable/icon")]
public class MainActivity : Activity

    protected override void OnCreate(Bundle bundle)

        // Set our view from the "main" layout resource

        // Get our button from the layout resource,
        // and attach an event to it
        ImageView view = FindViewById<ImageView> (Resource.Id.qrCodeView);
        Button scannerButton = FindViewById<Button> (Resource.Id.scannerButton);
        view.SetImageBitmap (GetQRCode ());

        scannerButton.Click += async (sender, e) => {
            var scanner = new ZXing.Mobile.MobileBarcodeScanner(this);
            var result = await scanner.Scan();

            Toast.MakeText(this, result.Text, ToastLength.Long).Show();


    private Bitmap GetQRCode()
        var writer = new BarcodeWriter 
            Format = BarcodeFormat.QR_CODE,
            Options = new ZXing.Common.EncodingOptions 
                Height = 600,
                Width = 600
        return  writer.Write ("LEC-15 8320");

Is there a way to send this output to the BlueTooth Printer??



Sign In or Register to comment.