Implementing QR Code Reader to Flash AIR Android App?
Copy link to clipboard
Copied
Hi everyone!
I am developing an Android application using AIR on Adobe Flash CS5.
I am still a beginner to actionscript 3.0 as I am more used to actionscript 2.0
I am currently looking for a way to implement a QR code reader to my app which works in conjunction with the hardware camera of the android device.
I am not entirely sure if AIR is capable of doing this, but I have found the following website by luck:
http://www.remotesynthesis.com/post.cfm/adding-a-qr-code-reader-in-flex-on-android
The writer seem to have accomplished a QR decoder application via Flex.
I am not too sure what Flex really is neither, all that I know is that Flex is a development kit for making mobile/desktop appilcation.
But there seems to be some sort of relation between AIR and Flex and there is even a selectable FlexComponentBase component in Flash CS5.
Now, is it possible to use the ZXing Library in my AIR project? If so how can I go about acheving this?
Thank you very much in advance!
Copy link to clipboard
Copied
This site might be of help: http://blog.jactionscripters.com/2009/05/23/introduction-of-qr-code-reader-library/. It has a .swc library that implements reading of QR codes, the source being a Video or any Sprite. You could attach the device's camera to a Video object.
Copy link to clipboard
Copied
Loosely compared with Java --
Adobe AIR or Flash in Browser is like JVM that can execute some code.
Actionscript X.X is like the Java language itself
Flex is a component framework like AWT or SWING which can give you readymade UI components that you can re-use.
Flash CS or Flex Builder can be compared to intelliJ or Eclipse [i.e. IDEs for developing applications]
Having said that, if you are still looking for android QR reader solution:
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.
ANE can be compared to JNI in Java world
Regards,
sbhave
Copy link to clipboard
Copied
can u send them to me
Copy link to clipboard
Copied
Copy link to clipboard
Copied
This is fantastic. Thanks!
