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

Developer
Posts: 19,636
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? 

Highlighted
Developer
Posts: 80
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.
Developer
Posts: 80
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).