12-16-2009 02:44 AM
I'd like to know if it's possible to associate a protocol (for example: 'myapp') to a native application installed on a Blackberry so that if a user types in 'myapp://xxx' in a web browser it calls the native application. In this case, how is it possible to achieve it ?
As far as I understood, it's possible to do it with iphone but I don't know if it's possible with blackberry?
12-16-2009 03:45 AM - edited 12-16-2009 03:46 AM
I think won't work for protocols.
You could use CHAPI (Content Handling API) for calling native applications. This is based on mime types.
There is an example in the JDE how to do it: "chapidemo" or search the API doc for javax.microedition.content"
12-16-2009 08:15 AM
As I said just check the CHAPI demo in the JDE:
Just copied the following from it, it opens a native app for a url (local file)
* Creates an Invocation object and passes it to the Registry.
* Called by 'Invoke' menu item.
private void doInvoke()
// Create the Invocation with the hard-coded URL
Invocation invoc = new Invocation(URL);
invoc.setResponseRequired(false); // We don't require a response
// We want to invoke a handler that has registered with ACTION_OPEN
// Get access to the Registry and pass it the Invocation
Registry registry = Registry.getRegistry(CLASSNAME);
catch (IOException ioe)
Which application do you exaclty want to invoke?