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
araskin
Posts: 128
Registered: ‎08-01-2008
My Device: Bold 9900, 9810, 9780, 9650 and so many others

Launching native application from standard BlackBerry Browser

Hi Everyone,


I wanted to see if this scenario is possible:

 

1. User launches standard BlackBerry Browser and launches a page by clicking on a bookmark.

2. Once the page loads there is a special link on the page which has been registered using the HttpFilter API

3. When the user clicks the link the native app is launched (since it has been registered with the HttpFilter

 

I am pretty sure it is possible since RIM has done this with BlackBerry App World. When you click on a link to BlackBerry App World in your Browser it will launch the BlackBerry App World native application.

 

So here is my question:

1. Is this possible (not just for RIM but for us external developers)?

2. Is this done via HTTPFilter API or or the string/pattern matching API which I have read about?

3. Is it possible to pass in parameters from the URL to the native app. Again, i think it is since that is what the BlackBerry App World does but I just want to be sure.

 

Regards,

 

Alon

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Launching native application from standard BlackBerry Browser

Yes, i think this is possible. I did not implement it myself so far, but afaik some colleagues have done so.

take a look at
http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/io/http/HttpFilterRegistry.htm...
there is also a httpfilterdemo in your samples folder which should give you a hands-on example.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
araskin
Posts: 128
Registered: ‎08-01-2008
My Device: Bold 9900, 9810, 9780, 9650 and so many others

Re: Launching native application from standard BlackBerry Browser

A minor follow-up question.

 

If I trigger my app by subscribing to a HTTP filter, will the parameters of the URL be passed into my native app?

 

Alon