StageWebView and The Native Browser

Must Read

Is a Home Equity Line Of Credit Tax Deductible?

Many people invest in real estate by making a full upfront payment, but are not financially sound enough to...

Thanksgiving Friday Sales at WalMart – Best Deals and Lowest Prices on Black Friday 2010

As Black Friday 2010 approaches many people will begin to think about the many Christmas gifts that they plan...

Facts About Loans For College Students

So you need help paying for college. What now?Loans for college students are the most common type of financial...

An Insight on Some Real Life Shocking Coincidences

Many of us come across different coincidences in our lives. Most of them occur in the form of accidents...

Marketing Guide Book Logo Design Love: A Guide to Creating Iconic Brand Identities

There are a lot of books out there that show collections of logos. But David Airey’s “Logo Design Love”...

Essentials of Affiliate Marketing Guide

In the business of online marketing, one model stands out above all. It is more commonly known as affiliate...


WebKit is a layout engine that browsers use to render web pages and to support interactivity and navigation history. Developed by Apple in 2002 and open sourced in 2005, WebKit is the default browser built in for Android.

The AIR runtime for the desktop also includes a version of WebKit built in. However, AIR for Android does not include it, and instead leverages the device’s native implementation and gives you access to some of its features via StageWebView.

StageWebView brings the benefits of an Internet browser to your own application. In this chapter, we will briefly discuss accessing the native browser, and then go over what StageWebView has to offer.

The Native Browser

To access the Internet, you need to set the permission for it:

[code]<uses-permission android:name=”android.permission.INTERNET” />[/code]

You can launch the Android native browser from an AIR application using the naviga teToURL method. You pass a URL in the same way you do on AIR for the desktop:


function onPublicNews():void {
navigateToURL(new URLRequest(“”));


You can also use this method to launch native applications, such as the Android Market, that in turn makes calls to the Internet. The following example opens the Android Market and sets the criteria of applications to display as a URLRequest. Note that the protocol used is market:// instead of http://:


function onSearchMarket():void {
navigateToURL(new URLRequest(“market://search?q=food”));


In both cases, your application moves to the background and the native browser becomes the active application.

We need, instead, a solution whereby HTML content can be embedded inside an AIR for Android application. This is what the StageWebView class does.


Latest News

Digital Marketing for Beginners

Digital marketing for starter, Let to basic learning about connecting with your audience in the right place at the...

More Articles Like This