Implementing QR Code Reader to Flash AIR Android App?

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!

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

Similar Messages

  • Is it possible to access user account in an air android app ?

    Is it possible to access user account in an air android app in as3 ?
    The only thing I've found on internet is that one has to add to its manifest permissions to acccess account :
    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
    and this documentation for native android coding :
    http://developer.android.com/training/id-auth/identify.html
    thanks for any help.

    There is no API in the AIR runtime to get user's accounts.
    But you may write an ANE to get the same.

  • How to embed a font air Android App????

    Hi, im new to this forum so please forgive me if i question in the wrong section.
    I am Beginner and am working on an air android game in flash cs6.. i need embed fonts please help me sort out htis problem..

    The easiest for me is to simply embed your font into your main document class, like this:
    package
         import flash.display.Sprite;
         import flash.text.*;
         public final class MyApp extends Sprite
              [Embed(source="../fonts/ITCAvantGardeStd-Bold.otf", embedAsCFF = "false", fontWeight="bold", fontName = "ITCAvantGardeStd_DemiAndBold", mimeType = "application/x-font-truetype", unicodeRange="U+0021-U+007E, U+00A9, U+00AE")] // Main characters + Copyright and Registered glyphs
              static public var ITCAvantGardeStdBold:Class; // that's what the embed gets baked into
              Font.registerFont( ITCAvantGardeStdBold ); // do this once per font
              public function MyApp():void // Constructor
                   // Create a textformat that uses the font
                   var tft:TextFormat = new TextFormat( "ITCAvantGardeStd_DemiAndBold", 20, 0xffff00, true );  // size = 20 pix, color is yellow, bold = true, matching the font weight
                   // create a text field
                   var tf:TextField = new TextField();
                   with ( tf )
                        antiAliasType = AntiAliasType.ADVANCED; // optional
                        defaultTextFormat = tft;
                        embedFonts = true; // this is using an embedded font
                        width = 100;
                        autoSize = TextFieldAutoSize.LEFT;
                        wordWrap = true;
                        text = "Hello world ! blah blah blah blah blah blah blah blah blah blah blah blah";
                        height = textHeight + 8; // nice and tight
                        border = true; // for fun
                        borderColor = 0xffff00; // yellow
                   addChild( tf );
         } // end of: class
    } // end of: package
    The embed statement contains several optional properties, like fontWeight, fontStyle, and fontFamily.
    Check here for info:  http://divillysausages.com/blog/as3_font_embedding_masterclass
    Note: Alternatively, you could use Flash Professional to embed the font into the document class via the IDE ( like so: http://www.adobe.com/devnet/flash/quickstart/embedding_fonts.html ).
    Also, for these kinds of questions, I recommend:
    1) O'Reilly -- Essential ActionScript 3.0
    2) O'Reilly -- ActionScript 3.0 Cookbook

  • Flash AIR mobile app Facebook?

    Is there any good tutorial or API for native FB integration in an Android/iOS Flash AIR app?
    I found an API called GoViral. Has anyone tried this API?
    I need to have the following features: Log-in(With user ID), like page, share post, invite friend.

    i've used two of milkman's (alex liebert) extensions including goviral.
    1.  they work.
    2.  when they fail it's been user (my) error.
    3.  alex is very responsive to user problems

  • Air Android - app.xml manifest

    Hi,
    How to add these Android settings to an Air Andoid app.xml manifest?
    <supports-screens android:
                      android:largeScreens="true"
                      android:xlargeScreens="true"/>
    I tried it like this, but got an error:
      <android>
        <manifestAdditions>
    <![CDATA[
            <manifest android:installLocation="auto">
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-sdk android:minSdkVersion="8"/>
    <supports-screens android:
                      android:largeScreens="true"
                      android:xlargeScreens="true"/>
    ]]>
        </manifestAdditions>
      </android>
      Thanks!

    Hi,
    You can use it as written below:
    <android>
            <manifestAdditions><![CDATA[
                <manifest android:installLocation="auto">
                     <uses-permission android:name="android.permission.INTERNET"/>
                     <supports-screens android:largeScreens="true"
                    android:xlargeScreens="true"/>
    </manifest>
            ]]></manifestAdditions>
    </android>
    Hope it helps.
    Regards,
    Nimit

  • How to minimize adobe air android app with as3?

    I have 2 buttons in my app ( my app published by flash cs6 for android ). one button for exit app and one button for minimize app (send app to background and show homepage).what is code for 2nd button in as3?
    b1.addEventListener(MouseEvent.MOUSE_UP,exitapp);
    b2.addEventListener(MouseEvent.MOUSE_UP,minimizeapp);
    function exitapp(e:MouseEvent)
         nativeapplication.nativeapplication.exit();
    function minimizeapp(e:MouseEvent)
         //...what code I should write here?

    I don't think there's a way to do this with standard AIR APIs. On iOS there's no general solution for this, but for Android you could probably make a simple ANE, possibly by using sendTaskToBack.

  • Adobe AIR Android + MediaPlayer: Video Plays with no Audio

    I am trying to play a video in my Adobe AIR Android App. I can't seem to get the video to play with audio in the application. I can get the audio to play in the native players on both my Samsung Galay and my Asus Transformer outside of my app, but when I load the video using StageVideo, the audio doesn't play at all.
    I tried just launching the video into the navtive browser or using StageWebView but that doesn't work either.
    I am a bit at a loss and need some advice.
    Here's the code below.
    MediaPlayerExample:
    var resource:URLResource = new URLResource(videoPath);
    container = new MediaContainer();
    addChild(container);
    container.y = this.headerHeight;
    videoElement =  new VideoElement(resource);
    videoElement.smoothing = true;
    container.addMediaElement(videoElement);
    container.width = this.stage.stageWidth;
    container.height = this.stage.stageHeight;
    mediaPlayer = new MediaPlayer();
    mediaPlayer.media = videoElement;
    mediaPlayer.addEventListener(TimeEvent.CURRENT_TIME_CHANGE, this._onProgress);
    this.videoHeader = new VideoHeader(this.stage.stageWidth);
    this.addChild(this.videoHeader);
    Any help would be great!

    Quicktime or Quicktime Pro (both of which iTunes uses) does not convert "muxed" ( muxed means multiplexed where the audio and video are stored on the same track) video files properly. It only plays the video and not the audio.
    See:iPod plays video but not audio.
    You need a 3rd party converter to convert the file with both audio and video.
    See this for help: Guide to converting video for iPod (Mac/Windows).

  • Flash-Air-App for iOS and Apples new App Store guideline (XCode 5)

    Hi Forum,
    i'm using Flash CC for the development of an iOS App (AIR).
    Now Apple will soon update the iOS to 7.1 and Apple says, that from 1st of Feb. 2014 you can only publish iOS-Apps created in XCode 5 in App Store.
    Or how do I have to read this statment from Apple: "Starting February 1, new apps and app updates submitted to the App Store must be built with Xcode 5 and iOS 7 SDK."
    How does this fact affect my Project?
    Will it still be possible to publish an FLash-Air-iOS-App through App Store?
    Thank you in advance
    Ralf Kopp

    Adobe fixed this internally. Just update your adobe air sdk to latest from labs.adobe.com

  • Sending Tweets via Adobe AIR iOS Apps

    Heya everyone.
    Is there a way that I can implement a tweet function into an AIR iOS app? I'm currently developing it in Flash Professional Actionscript 3. I understand that there's a method of doing it in Flex, but I have no knowledge in that area.
    Thanks .

    hey kglad, thanks for your help. things are a little clearer now.
    I had a look at the REST API Resources, and dug out the "POST statuses/update_with_media" which requires authentication. So I shall proceed with using tweetr's oAuth class.
    I've chosen to make the authentication a PINless one, since I'm currently dealin with an iPhone app, and I do not wish to disturb the user with a browser opening up everytime whenever an authentication is needed.
    I had a look through tweetr's pinless authentication tutorial and found this piece of code:
    oauth = new OAuth();
    oauth.consumerKey = "YOUR_CONSUMER_KEY";
    oauth.consumerSecret = "YOUR_CONSUMER_SECRET";
    oauth.callbackURL = "http://your.callback.url";
    oauth.pinlessAuth = true;
    oauth.addEventListener(OAuthEvent.COMPLETE, handleOAuthEvent);
    oauth.addEventListener(OAuthEvent.ERROR, handleOAuthEvent);
    var rect:Rectangle = new Rectangle(50,50, 780, 500);
    htmlLoader = HTMLLoader.createRootWindow(true, null, true, rect);
    oauth.htmlLoader = htmlLoader;
    oauth.getAuthorizationRequest();
    I'm guessing the above code goes into the constructor? Or into a private function itself where it'll be called when a button is pressed or something.
    Another question is, what is a request URL? It seems like the default address (according to my application details in dev.twitter.com) is http://api.twitter.com/1/. But that doesn't seem right at all.
    Cheers

  • How do I change the Version Code in the Flash Android settings Android app market?

    I recently tried to update my app in the Android app market and when I uploaded it I got the following message:
    "The new apk's versionCode (1000000) already exists."
    In the Flash Adnroid settings I changed the version label but that did not help.
    So I have two questions:
    How do I change the Version code in the Flash Android settings? I changed the version number and version label but that did not work.
    What is the difference between the version number and version label?

    I tried that but it did not work. Apparently there is a difference between the version code and version number (which is set in the Android settings). From my research the version label is optional, so there are no problems there.
    This is the what the XML file says:
    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    <application xmlns="http://ns.adobe.com/air/application/2.6">
      <id>com.company.nameofapp</id>
    //Below is the correct version number, but has no relation to the version code.
      <versionNumber>1.1.0</versionNumber>
      <versionLabel>NewLayout</versionLabel>
      <filename>Name of app</filename>
      <description/>
    I did find this piece of information for Androin version codes. (http://developer.android.com/guide/publishing/versioning.html)  But I don't know how to place it into the xml file without conflicting with other code.
    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.example.package.name"
          android:versionCode="2"
          android:versionName="1.1">
        <application android:icon="@drawable/icon" android:label="@string/app_name">
        </application>
    </manifest>
    Any other thoughts are much appreciated.

  • How do I change the Version Code in the Flash Android settings for the Android app Market?

    I recently tried to update my app in the Android app market and when I uploaded it I got the following message:
    "The new apk's versionCode (1000000) already exists."
    In the Flash Adnroid settings I changed the version label but that did not help.
    So I have two questions:
    How do I change the Version code in the Flash Android settings? I changed the version number and version label but that did not work.
    What is the difference between the version number and version label?

    I tried that but it did not work. Apparently there is a difference between the version code and version number (which is set in the Android settings). From my research the version label is optional, so there are no problems there.
    This is the what the XML file says:
    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    <application xmlns="http://ns.adobe.com/air/application/2.6">
      <id>com.company.nameofapp</id>
    //Below is the correct version number, but has no relation to the version code.
      <versionNumber>1.1.0</versionNumber>
      <versionLabel>NewLayout</versionLabel>
      <filename>Name of app</filename>
      <description/>
    I did find this piece of information for Androin version codes. (http://developer.android.com/guide/publishing/versioning.html)  But I don't know how to place it into the xml file without conflicting with other code.
    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.example.package.name"
          android:versionCode="2"
          android:versionName="1.1">
        <application android:icon="@drawable/icon" android:label="@string/app_name">
        </application>
    </manifest>
    Any other thoughts are much appreciated.

  • I need help adding admob ads to air for android flash cs5.5 app

    I would like to know how can i add admob ads in adobe flash cs5.5 air for android app without buying any extentions please tell in detail because my scripting in as3 is VERY weak, so detailed answers would be lovely.

      flash-air-admob-ane-for-ios-and-android - Admob Ane,a adobe native extention(ANE) for actionscript developer to add go…
    you need upgrade to flash cc.

  • Using Google Play Developer License RSA code with Air for Android App?

    What is the procedure for using Google Play Developer's provided license code (Base64-encoded RSA public key to include in your binary) for an Air for Android app in Flash?
    I see the need to load a p12 file and have gone through the process of creating one for Air for iOS with OpenSSL but the Google provided key is in a different format. To start with it is delivered by copy/paste off a webpage.
    I am using Flash CS5.5. I could switch to CS6 if neccesary.
    Thanks

    Follow this link, see post number 12.
    http://forums.adobe.com/thread/1115438

  • Flash Air For Android FaceBook Invaild Hash Key Error

    Hi all,
    I'm getting facebook connect error with flash/air app on Android device , anyone can help me plz ?
    http://screencast.com/t/Ff6yqVqk
    2jmj7l5rSw0yVb/vlWAYkK/YBwk=

    Yes i already did it but still getting invalid key hash error
    2014-12-28_1337 - redpak's library

  • QR code reader needs Adobe flash player

    My iPhone 4S can not read certain QR codes because it needs Adobe Flash Player.
    I am using RedLaser app for this.
    Is there another app which circumvents this problem?

    Are all QR codes linked to Flash Player?
    No - none are. QR codes contain email address, contact details, web site addresses etc.
    If the web site the QR code links to contains Flash - you won't be able to view that particular website content on yor iPhone. It is nothing to do with the QR code. The QR code just contains the link - not the actual content.

Maybe you are looking for

  • ITunes 8.0 only Plays One Song at a Time, then Stops! AARGH!

    Someone, please help. I have tried everything I can think of, to no avail. For some reason, when I play a song in my Music Library on my laptop iTunes 8.0, it stops playing after each song. When the song ends, iTunes stops; it does not move to the ne

  • Install of itunes v 12.1 fails on windows 8.1

    I have just tried to update iTunes to 12.1 on Windows 8.1 and it fails looking for iTunes.msi file. I tried downloading software then installing but it also fails. Now iTunes has stopped working. Any suggestions folks? Thanks Allan

  • My iphone has like 2gig space free, after connect to itunes phone display disk full how can i get my space back

    i was using my iphone normally it has 2 gig space free i made a ringtone when i connected the iphone to transfer the ringtone itunes show sinc and make my phone look like is full but it has after connect the phone to itunes but im sure my phone has e

  • Extenal component not rendering file links properly

    Hi Adobe CQ expert, We need to include an external web app (based on asp) into our new CQ website. The asp web app is a search engine which searches another internal document database and returnes a list of files such as powerpoints, pdfs etc. These

  • Lightroom Map - Changing Coordinate Formats

    When adding GPS coordinates within the Map module the resultant coordinates are given in the format xx°xx'xx", x°xx'xx". When Alt-clicking on the arrow Google Map opens and there the coordinates are shown in the decimal format xx.xxxxxxxx, x.xxxxxxxx