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

New Developer
Posts: 4
Registered: ‎07-10-2009
My Device: Not Specified

Custom Protocol Handler?

My application needs to handle a custom protocol link that could come from a website or email (you know, like telnet://). How can I register my application to handle those protocols?
BlackBerry Development Advisor
Posts: 15,813
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Custom Protocol Handler?

There is no way to register a protocol.  However, you can create a custom StringPattern that can recognize your URL within text in an email message.  When a match is found a custom menu item appears in their menu that invokes your application when clicked on.  Have a look at the following link for an example.


How to - Leverage pattern matching in BlackBerry smartphone applications to provide an integrated user experience
Article Number: DB-00525




Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Posts: 22
Registered: ‎11-16-2010
My Device: Any

Re: Custom Protocol Handler?

Is this answer still valid for version 5.0, 6.0 APIs or can ProtocolController do this now?  Is there any example code for ProtocolController?

Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Custom Protocol Handler?

ProtocolController will do this, but only for BrowserField2 fields.  So in reality, this answer still applies.