Anyone have any current recommendations for Air QR code generator and reader (ANE, lib)?
I need a solution that will:
1) Generate a text/string QR code in Air desktop
2) Generate a text/string QR code in Air cross-platform mobile app (android or iOS). Same code base as #1.
3) Scan the QR code on cross-platform mobile device (android, iOS) from within my Air app.
I see a lot of search results for various ways, but so far nothing cross-platform.
Which search results did you try/test?
The following page seems to describe (at least partly) what you're looking for:
Thank you. This is one I found, but so far nothing appears to be truly cross-plaform (iOS and Android). I was hoping to not have to use separate solutions for each device. Some don't do both generating and reading either.
I have written ANE version for ZBar that works on Android and iOS over same ActionScript API. It works similar to CameraUI i.e. I open Native Activity/ViewController that scans and sends the data to AIR app as an async event.
I have developed this for one of my projects. If anyone is interested revert back on this thread itself.
I am looking for an ANE for barcode reading. Does your implementation have any limitations to what kind of barcode can be read?
I do not know the internals of zbar but can it be compared to the xzing library?
See http://code.google.com/p/adobe-air-qr-barcode-zbar-ane for Downloads and sample usage. If you find any issues you can open one on google project.
Thanks for your reply!
I am working with your ANE and its a really great! Its super fast at decoding and handles everything perfect.
I was just wondering if there is a way to customize the screenlayout of the scanner, or is that just the way ANE are set up?
For android you can.
You can modify the campreview.xml file in NativeExtension/Assets/res/layout
Re: Air QR code generator/reader by opening it in Android UI editor for
eclipse. (Android Dev. plugin for eclipse). Make sure you are not changing
existing hierarchy or ids of control. You can change or add anything else.
After this you can run command.txt from within NativeExtension/Assets
directory. to re-create the new ane package which will have new UI.
For iOS as of now all UI is generated via code.
I have used your code and its INCREDIBLE and highly recommended. Thanks.
Do you know what to add to your code so that if it reads a QR code vcard it gives the option to save contact info to the devices contacts list.?
Thanks for your response.
I still need to read the post but it certainly looks interesting.
I think it explains how I can make a QR Code having contact details.
I got your AS3 Qr Code reader to work and it reads a QR Code BEAUTIFULLY, even a VCard. Now your code simply reads the QR Code and outputs the read to a window. Your code doesnt tell the mobile device what to do with the output. Now it is easy enough to add some code which, if the data is a web address, will go to that webaddress. However if I have used your QR Reader (in AS3) to read a vcard how do I code the Reader so that it knows that it must add the contact info to my mobile devices contacts list and can actually do this ? I have some commercial QR Code readers which use the Zing Library and recognise that its a Vcard and give the choice to save to the contacts list.
The Zxing Library has a class named VcardResultParser at the address
So I am guessing I would need to add code to first recognise that its a Vcard and then to link the data to that Class ?
Or am I wrong ?