Retrieve Multiple Lists Of Events; Using The Address Book; Open The Address Book From Your Blackberry Java Application; Use Contacts - Blackberry JAVA DEVELOPMENT ENVIRONMENT - - DEVICE APPLICATIONS INTEGRATION - DEVELOPMENT GUIDE Integration Manual

Blackberry device applications integration guide
Table of Contents

Advertisement

BlackBerry Device Applications Integration Guide
2. To register to receive notifications of changes to an event list, invoke
BlackBerryPIMList eventList =
(BlackBerryPIMList)PIM.getIntsance().openPIMList(PIM.EVENT_LIST, PIM.READ_WRITE);
eventList.addListener(new myEventListListener3());
3. To have an application always listen to the default PIMList, add the following to the
method.
BlackBerryPIMList defaultEventList =
(BlackBerryPIMList)PIM.getInstance().openPIMList(PIM.EVENT_LIST, PIM.READ_WRITE,
newDefault);
defaultEventList.addListener(this);
pimList.removeListener(this);

Retrieve multiple lists of events

The first element in the array of lists is the default list.
>
Invoke
PIM.listPIMLists(int pimListType)
String[] allLists = PIM.listPIMLists(EVENT_LIST);

Using the address book

Open the address book from your BlackBerry Java Application

Task
Open the address book.
Open a contact using PIM data.
Manage exceptions.

Use contacts

Task
Provide access to the PIN BlackBerry® device
contacts field.
32
.
Steps
>
From a BlackBerry® Java® Application, invoke
Invoke.invokeApplication(APP_TYPE_ADDRESSBOOK,AddressBookArgum
ents)
.
AddressBookArguments
1. Create an instance of an
Contact
a
object.
AddressBookArguments abArg = AddressBookArguments(String arg,
Contact contact);
Invoke.invokeApplication(APP_TYPE_ADDRESSBOOK,
2. Invoke
AddressBookArguments)
contact.
Invoke.invokeApplication(APP_TYPE_ADDRESSBOOK, abArg);
ControlledAccessException
>
Check for a
invokes a BlackBerry application that you do not have permission to use or access.
Steps
BlackBerryContact.PIN
>
Use the
BlackBerryPIMList.addListener()
defaultChanged()
object, specifying as a parameter
AddressBookArguments
using the
if your BlackBerry® Java® Application
constant.
.
object for the

Advertisement

Table of Contents
loading

This manual is also suitable for:

Java development environment 4.6.0

Table of Contents