11
Phonebook Access API
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, int sortOrder)’ method:
int speedNo = 1;
index = PhoneBookRecord.getIndexBySpeedNo(speedNo, PhoneBookRecord. SORT_BY_NAME);
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, int sortOrder)’ method:
int index = 1;
PhoneBookRecord.setPrimary(index, PhoneBookRecord.SORT_BY_NAME);
Sample of code for calling of ‘resetPrimary(int index, int sortOrder)’ method:
int index = 1;
PhoneBookRecord.resetPrimary(index, PhoneBookRecord.SORT_BY_NAME);
Sample of code for calling of ‘isPrimary(int speedNo)’ method:
int speedNo = 1;
boolean res = PhoneBookRecord.isPrimary(speedNo);
Sample of code for calling of ‘fromVFormat(InputStream in, int device)’ method:
52