|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.rim.blackberry.api.invoke.Invoke
Used to invoke internal applications with optional parameters.
For examle, to invoke the phone application and initiate an outgoing call, you can use code similar to this:
Invoke.invokeApplication( Invoke.APP_TYPE_PHONE, new PhoneArguments( PhoneArguments.ARG_CALL, "555-5555" ) )
| Field Summary | ||
|
static int |
APP_TYPE_ADDRESSBOOK
Connect to the Address Book application. |
|
static int |
APP_TYPE_CALENDAR
Connect to the Calendar application. |
|
static int |
APP_TYPE_MEMOPAD
Connect to the Memo Pad application. |
|
static int |
APP_TYPE_MESSAGES
Connect to the Message application. |
|
static int |
APP_TYPE_PHONE
Connect to the Phone application. |
|
static int |
APP_TYPE_TASKS
Connect to the Tasks application. |
| Method Summary | ||
|
static void |
invokeApplication(int appType,
ApplicationArguments args)
Invokes an internal application. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int APP_TYPE_ADDRESSBOOK
public static final int APP_TYPE_CALENDAR
public static final int APP_TYPE_MESSAGES
public static final int APP_TYPE_MEMOPAD
public static final int APP_TYPE_PHONE
public static final int APP_TYPE_TASKS
| Method Detail |
public static void invokeApplication(int appType,
ApplicationArguments args)
appType - Application to connect to; must be one of the APP_TYPE_*
constants.args - The particular ApplicationArguments sub-class
corresponding to the contacted application.IllegalArgumentException - If the application type parameter does
not match the type of the application arguments parameter.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2004 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.