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,686
Post Thanks: 4
Thanked 100 Times in 72 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  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





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