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

Reply
Contributor
Posts: 30
Registered: ‎04-13-2010
My Device: N/A
My Carrier: T-Mobile

Opening a browser sessions in app

I use the code below

 

 

             public sexfactsScreen()
               {
                 BrowserSession bss = Browser.getDefaultSession();
                 bss.displayPage("http://www.google.com");
                 bss.showBrowser();
               }

 

 

but when i run it in the simulator it does work and bring up a session but it does not show google.com site... it just shows the requesting bar at the bottom.. is this how it is supposed to be?

 

I use Eclipse 3.4.1 w BB JDE plug in

Blackberry 8300 simulator.

 

Here is a picture of what I see, is this normal?

http://yfrog.com/2t60612069p

Thanks,
Saula
Your neighborhood programmer.
http://homeworkjava.com
Developer
Posts: 2,268
Registered: ‎07-08-2009
My Device: various
My Carrier: various

Re: Opening a browser sessions in app

Try running MDS simulator before starting the BlackBerry one - your Browser is probably configured to use MDS.  You can check it in Service Book - accessible via Settings -> Advanced Options, IIRC.

 

Good luck!

----------------------------------------------------------
please click 'Accept Solution' on posts that provide the solution to the question you've posted. Don't say "Thanks", press 'Like' button instead!
Contributor
Posts: 30
Registered: ‎04-13-2010
My Device: N/A
My Carrier: T-Mobile

Re: Opening a browser sessions in app

Lol how do I run the MDS simulator :-/

 

also could it be because i havnt done the code signing yet?

Thanks,
Saula
Your neighborhood programmer.
http://homeworkjava.com
Highlighted
Developer
Posts: 656
Registered: ‎02-03-2010
My Device: Z10 LE
My Carrier: Rogers

Re: Opening a browser sessions in app

You don't need to sign the app when you use the simulator.  In Eclipse just go into Run Configurations and check the box to launch the MDS at startup.  I included a picture for you to see where it is.

 

1761iCF2F0F652469BEA3


Steven Kader at JaredCo
   Follow me on Twitter    |     Mipixi.com :  Web App for Photo Sharing