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
Regular Contributor
jayakrishnan_salim
Posts: 61
Registered: ‎05-22-2011
My Device: Blackberry Torch
My Carrier: Airtel
Accepted Solution

Invoking the application upon clicking a link in browser field

Hi All,

 

Is there a way to invoke the application on clicking a link/button in browser field?

The link/button would be a part of web page which will be shown in a browser field. If the user clicks on it, he/she should be taken to corresponding screen in the native app. 

 

Can anyone please let me know how this can be done in BlackBerry?

 

Thank you very much in advance. 

Please use plain text.
Developer
peter_strange
Posts: 19,603
Registered: ‎07-14-2008
My Device: Not Specified

Re: Invoking the application upon clicking a link in browser field

Not sure this is possible or if it is, if it is easy, but first we need to understand one thing.  You say:

 

"The link/button would be a part of web page which will be shown in a browser field."

 

I am not clear on whether the screen being shown is using a BrowserField, and so is under control of an application, or is it being shown in the Browser on the device? 

 

If it is being shown in a BrowserField, is the application showing this written by you? 

Please use plain text.
Regular Contributor
jayakrishnan_salim
Posts: 61
Registered: ‎05-22-2011
My Device: Blackberry Torch
My Carrier: Airtel

Re: Invoking the application upon clicking a link in browser field

Hi Peter,

Thank you for responding.

Yes, the screen being shown is using a browser field and the application is written by me.
Please use plain text.
Regular Contributor
jayakrishnan_salim
Posts: 61
Registered: ‎05-22-2011
My Device: Blackberry Torch
My Carrier: Airtel

Re: Invoking the application upon clicking a link in browser field

I could successfully implement this with the help of HTTPFilterRegistry (net.rim.device.api.io.http.HttpFilterRegistry). 

A sample project of the same is available in BlackBerry samples in Eclipse IDE (HttpFilterDemo). 

 

Please use plain text.