Welcome!

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

Java 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.


Reply
Contributor
Posts: 28
Registered: ‎01-31-2012
My Device: 8520
My Carrier: Telkomsel

BrowserField error launch

please help,

I create browse field for displaying facebook page when application launched it wont let land on facebook,page appear after clicked back button.

Any suggest how to displayed facebook page on first launched? below attached the script

package com.samples.toolkit.ui.test;

import net.rim.device.api.browser.field2.BrowserField;
import net.rim.device.api.ui.UiApplication;
import net.rim.device.api.ui.container.MainScreen;

public class UIExampleFacebookRPM extends UIExampleScreen
{
	 
		private MainScreen _screen;
		private BrowserField _bf2;
			
		UIExampleFacebookRPM()  
		{		
			_bf2 = new BrowserField();

			_screen = new MainScreen();
		        _screen.add(_bf2);
			pushScreen(_screen);

			_bf2.requestContent("http://m.facebook.com/myfb");
		}
		
		private void pushScreen(MainScreen _screen) {
			// TODO Auto-generated method stub
			UiApplication.getUiApplication().pushScreen(_screen);
		}

		public static void main(String[] args) 
		{
			UIExampleFacebookRPM app = new UIExampleFacebookRPM();        
			app.enterEventDispatcher();        
		}

		private void enterEventDispatcher() {
			// TODO Auto-generated method stub
			UiApplication.getUiApplication().enterEventDispatcher();
		}
	} 

 Need Help

 

Best Regards

 

Galih

Contributor
Posts: 28
Registered: ‎01-31-2012
My Device: 8520
My Carrier: Telkomsel

Re: BrowserField error launch

Need Help Plisss
Developer
Posts: 30
Registered: ‎02-02-2012
My Device: 9780
My Carrier: DU. UAE

Re: BrowserField error launch

You create the mainSCreen with a button to connect to FB , and on clicking that button call 

 

Browser.getDefaultSession().displayPage(
					"http://m.facebook.com/myfb");
			

 When you move back from the FB page your mainscreen will be displayed.

Highlighted
Contributor
Posts: 49
Registered: ‎12-29-2011
My Device: 9800
My Carrier: vodafone

Re: BrowserField error launch

BrowserSession browSession = Browser.getDefaultSession(); browSession.displayPage(Url); browSession.showBrowser();