Motorola E680 Technical Manual - Page 63
Sample of code for calling of 'getDeviceTypeint speedNo' method
View all Motorola E680 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 63 highlights
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