AIR2.5 StageWebView demo – OAuth Support



Some of you will have seen our recent series of e-seminars and blog posts about EVA, the Evangelist tool for day-to-day activities.  As you would expect, it’s a multi-screen application that uses all of our technologies where possible.

In terms of production, I am responsible for the mobile implementation and for that I created a number of features such as the GeoServices library, Twitter widget and radar widget – all of which I covered in previous blog posts.

One of the team gripes with the Twitter component is that it’s too hard to login to Twitter using the PIN based mechanism.  With that in mind I jumped at the chance to use StageWebView that is now part of the AIR 2.5 beta on Android devices.

Download Source

, ,

  • Pingback: AIR2.5 StageWebView demo – OAuth Support | Flash Stock Files

  • Nathan

    AIR 2.5 beta ???

    WOW.. Thats great… Keen to know more..

    When it is going to be released?

    • Mark Doherty

      You can access the beta and get started now at


  • Pingback: Current Tweetr / OAuth Progress |

  • Matt

    stageWebView doesn’t fire LocationChangeEvent properly on Android StageWebView

    See comment and post here:

  • Johns

    I am using stageWebView in my mobile app but running into two problems. Hoping someone can help!

    1) I want to load a simple web page with a link for a phone number and a link for email. If I view that page in the browser of my smartphone (Android/HTC/Evo), a click on the phone link launches the native dialer with the number already entered. and a click on the email link launches the default email client with the email address already populated.

    BUT, when I access that very same web page inside my Adobe Air app (using stageWebView), clicking on either link causes a page not found message!!! How do I get stageWebView to properly handle these links as the default browser does?

    2) Whenever my app triggers the soft keyboard to enter data into a text field on a form, after I finish and dismiss the soft keyboard my stageWebView remains resized as it was (automatically) to view the soft keyboard. So it is approx 1/2 of the screen when it should be on the whole screen. And the space where the soft keyboard was displayed is blank. No matter what page I navigate to this situation remains until I force close the app and restart.

    How would I fix this?

    Thanks in advance for any assistance!

  • Matt


    I don’t know about the links but with your reference to the stageWebView object you should be able to resize it after the soft keyboard has been hidden.

    You’ll have access to the screen size via NativeApplication from the air api and I’m sure the keyboard fires an event when hidden but you’ll have to search for that event and make a listener for it that will resize your stageWebView.

    Hope it helps a bit.

  • Mamta

    I am using stageWebView for showing webpage in my mobile app but don’t know how to move back to my app once it gets loaded. In application descriptor file, I had already registered custom uri scheme (myapp://) for IOS devices and from the loaded page inside stageWebView, I was trying to call following URL myapp://webcam. But nothing had happened. It neither called LOCATION_CHANGE event of StageWebView not called INVOKE_EVENT of nativeapplication.

    How can I fix this issue?

    Thanks in advance,

    • Mark Doherty

      Hi Mamta, You should listen for the COMPLETE event as well

      stageWebView.addEventListener(Event.COMPLETE, handleLocationChange);
      stageWebView.addEventListener(LocationChangeEvent.LOCATION_CHANGING, handleLocationChange);
      stageWebView.addEventListener(LocationChangeEvent.LOCATION_CHANGE, handleLocationChange);

    • Anonymous

      Also you can pass additional arguments to your app from the invoking
      source. Arguments can be passed in the URL scheme after the colon; for
      example: my-scheme:myparam.

      (Android Mobile Application

  • Marius Pena