Skip navigation
Currently Being Moderated

Air QR code generator/reader

Oct 14, 2012 4:03 PM

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.

 

Thanks!

Don

 
Replies
  • Currently Being Moderated
    Oct 23, 2012 7:05 AM   in reply to Don Kerr

    Which search results did you try/test?

     

    The following page seems to describe (at least partly) what you're looking for:

     

    http://cookbooks.adobe.com/post_How_do_I_add_a_QR_code_reader_to_my_Fl ex_mobile_ap-19074.html

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 10, 2013 6:08 PM   in reply to Don Kerr

    I encode text, string, URL in QR Code using the QR Code barcode generator. It works for the ios 6 and can be scanned easily.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 13, 2013 10:13 PM   in reply to Don Kerr

    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.

     

    Regards,

    sbhave

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 28, 2013 11:42 AM   in reply to sbhave

    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?

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 28, 2013 6:57 PM   in reply to NosliAir

    It supports somewhere around 13 barcode formats. Which you can configure from ane. For supported formats you can google for zbar supported formats.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 28, 2013 7:31 PM   in reply to sbhave

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 2, 2013 1:35 AM   in reply to sbhave

    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?

     

    Regards

    Nordin

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 2, 2013 5:16 AM   in reply to NosliAir

    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.

     

    Saumitra Bhave

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 21, 2013 12:34 PM   in reply to sbhave

    Hi sbhave

     

    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

     

    Paul

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 21, 2013 12:50 PM   in reply to PaulHinrich

    You mean something like this ?

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 21, 2013 11:13 PM   in reply to sbhave

    Hi Sbhave.

     

    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.

     

    Thanks

     

    Paul

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 21, 2013 11:58 PM   in reply to sbhave

    I can imagine to do this on either Android or i-Phone would require access to an ANE to access contacts list on the device.

     

    Paul

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 27, 2013 4:15 AM   in reply to PaulHinrich

    The Zxing Library has a class named VcardResultParser at the address

     

    actionscrit/core/src/com/google/zxing/client/result

     

    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 ?

     

    Paul

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points