0

I know there are apps to scan barcodes; and there is the popular ZXing OSS, which I see includes such interesting demos as "Windows Phone demo (demonstrates decoding of static images and from a camera)", but what we would actually prefer is to use ZXing, if possible, in a Xamarin Android project.

Can ZXing be used for that? If anybody has experience with that, can they report on the performance and battery-friendliness (or lack thereof) of doing so? Alternatively, how is it in Windows Phone? I see that assemblies are available for WP8, also for Portable Class Library, which is the "Core" (shared) part of the Xamarin solution. This indicates an affirmative answer to my question, but I'm not sure...

If there are phones that sport built-in barcode scanners or offer native camera-as-barcode funtionalilty, can this device/service be accessed via an API from a custom app? I'm thinking of the way Windows 8 (and I assume Windows Phone 8, then) works, where devices/suchlike services can be accessed from any app. If this is possible, we may have to at least consider foregoing Android for Windows Phone (8).

So: can ZXing be used in a Xamarin Android solution to "cast" a Phone's Camera as a Barcode Scanner? If we can find a good enough hardware/software solution on one platform, although this is a Xamarin/cross-platform solution, it's feasible that we end up only using that one "best" solution, whether it be Android or WP8 (probably not iOS, but that's possible, too).

UPDATE

I just found out there is also a "Scandit Barcode Scanner SDK"

B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862

1 Answers1

1

There is a Xamarin Component - ZXing.NET Mobile - available that wraps ZXing for Android, Windows Phone and iOS.

Jason
  • 86,222
  • 15
  • 131
  • 146
  • I just added ZXing from the Component Store into my VS Xamarin solution (into the Android project); I haven't actually written any code against it yet, but at least the installation was seamless; seemingly this is not the same with Android Studio (which I am considering using if we decide to create just an Android version). I say that because of this: http://stackoverflow.com/questions/20334572/android-studio-0-3-2-and-zxing and this: http://stackoverflow.com/questions/18543668/integrate-zxing-in-android-studio – B. Clay Shannon-B. Crow Raven Mar 27 '14 at 21:10
  • "Bluetooth Zebra" might be a good name for a punk band; I found this: Bluetooth Zebra: http://forums.xamarin.com/discussion/14923/zebra-printer-android – B. Clay Shannon-B. Crow Raven Mar 27 '14 at 21:45
  • From what I see on the Red, integrating ZXing into Android Studio is not the most straightforward thing in the world: http://stackoverflow.com/questions/18543668/integrate-zxing-in-android-studio and http://stackoverflow.com/questions/20334572/android-studio-0-3-2-and-zxing – B. Clay Shannon-B. Crow Raven Mar 27 '14 at 21:52