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
Highlighted
Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10
Accepted Solution

Open a link in new screen rather than in browser

Hi,

I want to develop an application that opens a link in application rather than in browser.

 

Can any1 help me??

 

Thanks in advance

Developer
Posts: 68
Registered: ‎11-24-2010
My Device: Not Specified

Re: Open a link in new screen rather than in browser

You can do it using BrowserField in blackberry.

Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10

Re: Open a link in new screen rather than in browser

Thanks for ur reply

Can u show me the sample??

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Open a link in new screen rather than in browser

If you use the search box you might find the answer to your question without having to wait for someone to help you.  And you might find some other interesting information. 

 

In this case, typing BrowserField in the Search box will find a number of samples for you, including this one:

http://supportforums.blackberry.com/t5/Java-Development/BrowserField-Sample-Code-Create-your-first-B... 

Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10

Re: Open a link in new screen rather than in browser

Hi Peter,

Thanks for your advise.Actually i used this code before and ran it on simulator so its showing some error.

I also have google it bt still not found the answer.

But when i ran it on device its workin.

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Open a link in new screen rather than in browser

"its showing some error"

When testing in a SImulator, make sure you have the MDS Simulator running - test the same URL on the Browser to confirm. 

 

"I also have google it bt still not found the answer."

I think you might need to talk to Google about that.  On my system I just used the following keywords in a Google search

blackberry browserfield sample code

and found the same sample I already pointed you at. 

Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10

Re: Open a link in new screen rather than in browser

Thanks to your google than..Smiley Tongue