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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Trusted Contributor
arunbiet
Posts: 233
Registered: ‎06-22-2010
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

Please use plain text.
Developer
peter_strange
Posts: 17,722
Registered: ‎07-14-2008

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...

Please use plain text.