Montag, 16. November 2009

CHAPI as BlackBerry Intents

At developer day of BlackBerry developer conference we had a disussion about supporting something like Android intents on BlackBerry. Cassidy Gentle from RIMs java team compared it to CHAPI and if yout think about it, it's definetely comparable:

An intent has an action and a URL, which is exactly the same as CHAPI has.
My 1st idea was that CHAPI does not support the returning of values as Intents do. But actually it does, as the finish method describes:

The content handler may modify the URL, type, action, or arguments before invoking finish. If the method Invocation.getResponseRequired returns true, then the modified values MUST be returned to the invoking application.

So all we have to do is collect and document CHAPI handlers implemented by 3rd party vendors and describe them as OpenIntents do for intent receiver on android.

There is already a lot of things you can do with CHAPI:
  • view and edit office files via Docs2Go with URL to file and ACTION_OPEN
  • open AppWorld with ID “net.rim.bb.appworld.Content” and ACTION_OPEN
  • print any file with Cortado free printing solution via URL to fiile and ACTION_PRINT
  • and much more
But this could just be the beginning. We could create a different way of reusage of components and services via CHAPI.

1 Kommentar:

  1. interesting blog. It would be great if you can provide more details about it. Thanks you

    -------------------------------------------------------------------------------------------------------

    Blackberry Developer

    AntwortenLöschen