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
Developer
Posts: 436
Registered: ‎06-22-2010
My Device: na
My Carrier: blackberry developer

how to capture browserfield events

How to capture borserfield events.I am able to display a web page using browserfield and now i want to know that if i am clicking on a link,which page/resource it is redirecting to

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

Re: how to capture browserfield events

Look at the

handleNavigationRequest()

and perhaps

handleResourceRequest()

in the ProtocolController that you can assign to your BrowserField using

BrowserFieldConfig.

 

Here are some KB articles that might help:

http://supportforums.blackberry.com/t5/Java-Development/BrowserField-Sample-Code-Using-the-BrowserFi...

 

http://supportforums.blackberry.com/t5/Java-Development/Sample-Code-Using-the-ConnectionFactory-clas...

 

The way this is all structured takes a moment to get your head around, but there is logic there...