Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

Posts: 14
Registered: ‎05-24-2013
My Device: Blackberry playbook
My Carrier: 7799356358

Showing white Screen in Blackberry playbook

[ Edited ]


iam getting white screen at ads place when i load the html page with javascript to display the ads using leadbolt advertising service in blackberry  playbook.


I developed the app using adobe AIR.


please tell me, can i use the leadbolt html bannar ads to display the ads in Blackberry playbook ?


i am showing the code how i used the html to display the ads...


 HTML page (Leadbolt html bannar ad):


<html lang="en">
<meta name="viewport" content="width=320; user-scalable=0;"/>
<body style="margin:0; padding:0;"> 
<script type="text/javascript" src="http://ad.leadbolt.net/show_app_ad.js?section_id=431321333"></script>



MXML page :


<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009" 
xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView" viewActivate="init(event)">
import mx.events.FlexEvent;

import spark.events.ViewNavigatorEvent;
private var htmladURL:String;
private var webView:StageWebView;
public var htmlString:String;
protected function init(e:Event):void {

webView = new StageWebView();
htmladURL = "file://D:/LLB/B_n_M_Flex/LeadboltAds/src/assets/Leadbolt.html";
webView.stage = this.stage; 
webView.viewPort = new Rectangle( 0, 0, 400, 600 ); 
webView.addEventListener(LocationChangeEvent.LOCATION_CHANGE, loadAds); 
private function loadAds(e:LocationChangeEvent):void {
if(e.location != htmladURL){
var url:URLRequest = new URLRequest(e.location);

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



I can see the ads in Flash builder 4.6 emulator but not in the Blackberry playbook and playbook simulator.


please help me to get out this problem....


Thank you,

Ravi kumar



Posts: 427
Registered: ‎02-22-2012
My Device: BlackBerry Z10, BlackBerry Dev Alpha C, BlackBerry PlayBook
My Carrier: Bell

Re: Showing white Screen in Blackberry playbook



Try using a QNXStageWebview. The API for them can be found here - https://developer.blackberry.com/air/apis/playbook/qnx/media/QNXStageWebView.html


If that doesn't work a developer posted this on how to do it for Android but it should be the same for BlackBerry - https://www.youtube.com/watch?v=r92-HpyZb6U

Follow me on Twitter: @dustinmalik
Keep up to date on BlackBerry development: http://devblog.blackberry.com/