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
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,700
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

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...

 

 

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Contributor
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?

Highlighted
Developer
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.