I have designed a blackberry application and it is working fine. But i need my application to open in two ways. One is when my application is clicked it should open and this is working fine. Second way of opening is whenever a link is clicked in a mail, my application should open.I have a little idea that we have to register the link in our application through Httpregistry. If this is true please help me how can it be done else please provide me a solution to acheive that functionality.
Share
You have 3 different options:
HttpFilterRegistry, if your register a class of your application as a HTTP filter, your application is called every time you click on a link (should work with email too, not tested)
StringPatternRepository: you can define an action to be executed when a given string pattern is found in a text. Explained here: http://supportforums.blackberry.com/t5/Java-Development/Leverage-pattern-matching-in-BlackBerry-smartphone-applications/ta-p/445053
Implement a browser plugin (works only in Browser) to handle a specific mime-type: http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/browser/plugin/BrowserContentProvider.html
I’d try with an HTTP Filter first, the StringPattern has a lot of side effects.
You also have to start your application at least once to register the String pattern or HTTP Filter. It can be done by defining an alternate entry point which is called on system startup.