Would you like to tell us how we are doing?

You bet No thanks

Sorry about the red box, but we really need you to update your browser. Read this excellent article if you're wondering why we are no longer supporting this browser version. Go to Browse Happy for browser suggestions and how to update.

Integrating Your App

Integrating with BlackBerry Device Software applications

This section describes how to invoke a core application, such as the Contacts application, the Phone application, and the Media application.

Invoke a BlackBerry Device Software application

You can create apps that invoke core applications such as the Messaging application, the Phone application, and the Media application. When your app invokes a core application, your app can make the core application perform an action or display information.

To start, import the required classes and interfaces.

import net.rim.blackberry.api.invoke.CalendarArguments;
import net.rim.blackberry.api.invoke.Invoke;
import net.rim.blackberry.api.invoke.MapsArguments;
import net.rim.blackberry.api.invoke.MessageArguments;
import net.rim.blackberry.api.invoke.PhoneArguments;

Invoke the Invoke.invokeApplication() method and use the appropriate parameters. For example:

  • To start the Messages application and create a new blank SMS message, call Invoke.invokeApplication() and use the following parameters: Invoke.APP_TYPE_MESSAGES and a MessageArguments object that uses the ARG_NEW_SMS field.
        new MessageArguments( MessageArguments.ARG_NEW_SMS) );
  • To start the calendar,call Invoke.invokeApplication(APP_TYPE_CALENDAR, CalendarArguments).
  • To start the phone application, call Invoke.invokeApplication(APP_TYPE_PHONE,PhoneArguments).
  • To start BlackBerry Maps and display the default map view, call Invoke.invokeApplication() and provide parameters for Invoke.APP_TYPE_MAPS and a new MapsArguments object.
    Invoke.invokeApplication(Invoke.APP_TYPE_MAPS, new MapsArguments() );