2
Integrating with BlackBerry applications
Invoke BlackBerry applications
You can create BlackBerry® Java® Applications that invoke BlackBerry device applications such as the email,
calendar, phone, maps, browser, and camera applications to perform an action or display information. When the
third-party BlackBerry Java Application invokes the BlackBerry device application, the third-party BlackBerry Java
Application can make the BlackBerry device application perform an action or display information.
See the
API Reference
for more information about using the
net.rim.blackberry.api.invoke.Invoke
class to
invoke BlackBerry device applications..
Invoke BlackBerry applications
Task
Steps
Start the message application and create
a new blank message.
>
Invoke the
invokeApplication()
method with the following parameters:
•
Invoke.APP_TYPE_MESSAGES
: a constant parameter
•
MessageArguments:
a new
MessageArguments
object that uses the ARG_NEW_SMS
parameter
Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, new
MessageArguments( MessageArguments.ARG_NEW_SMS));
Start the calendar.
>
Invoke
Invoke.invokeApplication(APP_TYPE_CALENDAR, CalendarArguments)
Start the phone application.
>
Invoke
Invoke.invokeApplication(APP_TYPE_PHONE,PhoneArguments).
Start the maps application and display
the default map view.
>
Invoke
invokeApplication()
using a new
MapsArguments
object.
Invoke.invokeApplication( Invoke.APP_TYPE_MAPS, new MapsArguments() );
Summary of Contents for JAVA DEVELOPMENT ENVIRONMENT - - DEVICE APPLICATIONS INTEGRATION - DEVELOPMENT GUIDE
Page 4: ......
Page 7: ......
Page 10: ...10 BlackBerry Device Applications Integration Guide...
Page 12: ...12 BlackBerry Device Applications Integration Guide...
Page 50: ...50 BlackBerry Device Applications Integration Guide...
Page 56: ...56 BlackBerry Device Applications Integration Guide...
Page 65: ......
Page 66: ...2008 Research In Motion Limited Published in Canada...