38
BlackBerry Device Applications Integration Guide
Notify an application when a list of contacts changes
1.
Create a class that implements the
PIMListListener
interface.
public class myContactListListener implements PIMListListener {
2.
To register to receive notifications of changes to a contact list, invoke
BlackBerryPIMList.addListener()
.
BlackBerryPIMList contactList =
(BlackBerryPIMList)PIM.getIntsance().openPIMList(PIM.CONTACT_LIST, PIM.READ_WRITE);
contactList.addListener(new myContactListListener());
Содержание JAVA DEVELOPMENT ENVIRONMENT - - DEVICE APPLICATIONS INTEGRATION - DEVELOPMENT GUIDE
Страница 1: ...BlackBerry Java Development Environment Version 4 6 0 BlackBerry Device Applications Integration Guide...
Страница 4: ......
Страница 7: ......
Страница 10: ...10 BlackBerry Device Applications Integration Guide...
Страница 12: ...12 BlackBerry Device Applications Integration Guide...
Страница 50: ...50 BlackBerry Device Applications Integration Guide...
Страница 56: ...56 BlackBerry Device Applications Integration Guide...
Страница 65: ......
Страница 66: ...2008 Research In Motion Limited Published in Canada...