BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 08-11-2008, 05:06 PM   #1 (permalink)
New Member
 
Join Date: Aug 2008
Model: 8800
PIN: N/A
Carrier: ATT
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default RIM Browser is not launching desired URL

Please Login to Remove!

Hi,

I'm writing wdigets for Black Berry handsets.
Code is:

visit.displayPage(URL);
visit.showBrowser();
System.exit(0);

This code is launching the specified URL page when I launch it from desktop. But if I select 'Run' after the game installed, it's staying on the last visited page.

Please help me if anyone have idea to fix this issue.

Thanks,
Suri
Offline  
Old 08-11-2008, 05:17 PM   #2 (permalink)
BBF Moderator
 
John Clark's Avatar
 
Join Date: Jun 2005
Model: Z30
OS: 10.2.1.x
PIN: s & needles
Carrier: AT&T
Posts: 34,703
Post Thanks: 4
Thanked 112 Times in 79 Posts
Default

Moved to Developer's Forum.
Offline  
Old 08-12-2008, 02:48 AM   #3 (permalink)
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

try to use this instead:
Code:
Browser.getDefaultSession().displayPage("http://www.blackberryforums.com/");
__________________
java developer, Devinto, hamburg/germany
Offline  
Old 08-12-2008, 11:17 AM   #4 (permalink)
New Member
 
Join Date: Aug 2008
Model: 8800
PIN: N/A
Carrier: ATT
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for your help.

I have tried with default seesion but no luck.

Code:
BrowserSession visit = Browser.getDefaultSession();
visit.displayPage(url);
visit.showBrowser();
System.exit(0);
Offline  




Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.