BlackBerry Tablet OS 7 StageWebView & Interactive UI with Adobe Flash Builder 4.5–Part I


Adobe Flash Builder 4.5  has inherently native support for building BlackBerry Tablet , Android, I-Os applications. Lets start by developing some rich BlackBerry OS 7 API & interactive UI .

Start by coding with StageWebView in BlackBerry Tablet OS 7 for  BlackBerry Playbook Device.

The  StageWebView allows for web (HTML and Flash, on supported devices) and video content to be loaded into a Flex application. StageWebView will utilize the native browser  to load HTML into your application.

Code:

<?xml version=”1.0″ encoding=”utf-8″?>

<s:Application

xmlns:fx=”http://ns.adobe.com/mxml/2009

   xmlns:s=”

library://ns.adobe.com/flex/spark

   applicationComplete=”application1_applicationCompleteHandler(event)”

>


<fx:Script>


<![CDATA[

import mx.events.FlexEvent;

privatevar stageWebView:StageWebView;

privatevar rect:Rectangle;

protectedfunction application1_applicationCompleteHandler(evnt:FlexEvent):void


{

if(StageWebView.isSupported == true) {

stageWebView =

new StageWebView();

stageWebView.viewPort =

new Rectangle(5,80,stage.width-10,stage.height-90);

stageWebView.stage =

this.stage;

}

else {

urlAddress.text =

“StageWebView not supported”;

}

}

protectedfunction button1_clickHandler(event:MouseEvent):void


{

stageWebView.loadURL(urlAddress.text);

}

]]>

</fx:Script>


<fx:Declarations>


<!– Place non-visual elements (e.g., services, value objects) here –>


</fx:Declarations>


<s:TextInput id=”urlAddress” left=”5” right=”80” top=”15” text=”http://www.google.com/>


<s:Button right=”5” top=”5” label=”GO” click=”button1_clickHandler(event)” />


</s:Application>

Lets Try to open any Web application or Website from BlackBerry Tablets without the help of browsers.

This slideshow requires JavaScript.

Advertisements

About Anindita
Anindita Basak is working as Big Data Cloud Consultant in Microsoft. Worked in multiple MNCs as Developer & Senior Developer on Microsoft Azure, Data Platform, IoT & BI , Data Visualization, Data warehousing & ETL & of course in Hadoop platform.She played both as FTE & v- employee in Azure platform teams of Microsoft.Passionate about .NET , Java, Python & Data Science. She is also an active Big Data & Cloud Trainer & would love share her experience in IT Training Industry. She is an author, forum contributor, blogger & technical reviewer of various books on Big Data Hadoop, HDInsight, IoT & Data Science, SQL Server PDW & PowerBI.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: