Motorola E680 - Smartphone - GSM Developer's Manual page 63

Micro edition (j2me) applications
Hide thumbs Also See for E680 - Smartphone - GSM:
Table of Contents

Advertisement

15
Phonebook Access API
Sample of code for calling of 'getMaxTelNoLength (int device)' method:
int maxTelNoLengthPhone =
PhoneBookRecord.getMaxTelNoLength(PhoneBookRecord.PHONE_MEMO
RY);
int maxTelNoLengthSim =
PhoneBookRecord.getMaxTelNoLength(PhoneBookRecord.SIM_MEMORY
);
int maxTelNoLengthAll =
PhoneBookRecord.getMaxTelNoLength(PhoneBookRecord.ALL_MEMORY
);
Sample of code for calling of 'getMaxEmailLength ()' method:
int maxEmailLength =
PhoneBookRecord.getMaxEmailLength();
Sample of code for calling of 'getIndexBySpeedNo(int speedNo)' method:
int speedNo = 1;
index = PhoneBookRecord.getIndexBySpeedNo(speedNo);
Sample of code for calling of 'getNewSpeedNo(int num, int device)' method:
int speedNo = 1;
int speedNo_phone =
PhoneBookRecord.getNewSpeedNo(speedNo,
PhoneBookRecord.PHONE_MEMORY);
int speedNo_sim =
PhoneBookRecord.getNewSpeedNo(speedNo,
PhoneBookRecord.PHONE_MEMORY);
int speedNo_all =
PhoneBookRecord.getNewSpeedNo(speedNo,
PhoneBookRecord.PHONE_MEMORY);
Sample of code for calling of 'getDeviceType(int speedNo)' method:
int speedNo = 1;
int type = PhoneBookRecord.getDeviceType(speedNo);
Sample of code for calling of 'setPrimary(int index)' method:
int index = 1;
PhoneBookRecord.setPrimary(index);
Sample of code for calling of 'resetPrimary(int index)' method:
int index = 1;
PhoneBookRecord.resetPrimary(index);
Sample of code for calling of 'isPrimary(int speedNo)' method:
63

Advertisement

Table of Contents
loading

Table of Contents