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,715
Post Thanks: 6
Thanked 115 Times in 82 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

Dell Inspiron 15R-5521 3521 OEM Genuine Battery MR90Y 65Wh 11.1v
$5.95
Dell Inspiron 15R-5521 3521 OEM Genuine Battery MR90Y 65Wh 11.1v pictureDELL 725-10284 / 331-2839 / W5RPF Lamp manufactured by DELL
$256.91
DELL 725-10284 / 331-2839 / W5RPF Lamp manufactured by DELL pictureGenuine OEM Dell RF223 High Yield Toner Cartridge CN-0RF223 5,000 18115dn NIB
$25.0
Genuine OEM Dell RF223 High Yield Toner Cartridge CN-0RF223 5,000 18115dn NIB pictureGenuine OEM Dell 3200MP Osram Replacement Lamp & Housing 310-2328
$79.99
Genuine OEM Dell 3200MP Osram Replacement Lamp & Housing  310-2328 pictureGenuine OEM Dell PK5F4 1M HDMI FC Switch Stack Cable w/Ethernet PCB042C00020-1
$13.98
Genuine OEM Dell PK5F4 1M HDMI FC Switch Stack Cable w/Ethernet PCB042C00020-1 picture






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