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
New Developer
Posts: 4
Registered: ‎09-10-2009
My Device: Not Specified

Access to Blackberry Browser using JDE

Hello,

 

I have a requirement where I need to get access/control of the BlackBerry browser, using BlackBerry JDE API.

 

I need to try one or more of the following -

 

From our JDE application -

* Capture the URL, currently displayed in the Blackberry browser.

* Finding out whether the Blackberry Browser has any popup dialog on top of it, such as 'Application was Successfully Installed', 'Download Cancelled' etc.

* Access to the content changed event in the BlackBerry browser.

* Closing the Blackberry Browser/ any poup dialog on top of it.

I havn't found any clue from the JDE API regarding above requirements.

Please let me know asap, if you have any pointers regarding same, any alternative way to do it.

 

Thanks,

Shailesh

Developer
Posts: 293
Registered: ‎02-25-2009
My Device: Not Specified

Re: Access to Blackberry Browser using JDE

BrowserSession browserSession = Browser.getSession("BlackBerry Browser");
browserSession.displayPage(url);

 

 

try this code.

 

~Amardeep

www.impetus.com

Highlighted
New Developer
Posts: 4
Registered: ‎09-10-2009
My Device: Not Specified

Re: Access to Blackberry Browser using JDE

This is fine for displaying a page.

I want to know in my application, what URL is currently displayed by the Blackberry browser, whether the browser has changed URL/ content etc.

Developer
Posts: 432
Registered: ‎02-23-2009
My Device: Not Specified

Re: Access to Blackberry Browser using JDE

You cannot get the current url of browser or browser history.

 


Press the kudos button to thank the user who helped you.

If your problem was get solved then please mark the thread as "Accepted solution".

 

Deepesh Gupta