Open the contacts application
You can open the contacts application on the
BlackBerry® device by using the
Invoke.invokeApplication() method, and passing in the relevant arguments.
- Import the required classes and interfaces.
import net.rim.blackberry.api.invoke.Invoke;
import net.rim.blackberry.api.invoke.AddressBookArguments;
import net.rim.device.api.system.ControlledAccessException;
- Invoke Invoke.invokeApplication(APP_TYPE_ADDRESSBOOK, AddressBookArguments).
AddressBookArguments abArg = new AddressBookArguments();
Invoke.invokeApplication(Invoke.APP_TYPE_ADDRESSBOOK, abArg);
- Check for a ControlledAccessException if your application does not have permission to access
the application that it invokes.
Was this information helpful? Send us your comments.