IIccPhoneBookpublic interface IIccPhoneBook implements android.os.IInterfaceInterface for applications to access the ICC phone book.
The following code snippet demonstrates a static method to
retrieve the IIccPhoneBook interface from Android:
private static IIccPhoneBook getSimPhoneBookInterface()
throws DeadObjectException {
IServiceManager sm = ServiceManagerNative.getDefault();
IIccPhoneBook spb;
spb = IIccPhoneBook.Stub.asInterface(sm.getService("iccphonebook"));
return spb;
}
|
Methods Summary |
---|
public java.util.List | getAdnRecordsInEf(int efid)Loads the AdnRecords in efid and returns them as a
List of AdnRecords
| public java.util.List | getAdnRecordsInEfForSubscriber(int subId, int efid)Loads the AdnRecords in efid and returns them as a
List of AdnRecords
| public int[] | getAdnRecordsSize(int efid)Get the max munber of records in efid
| public int[] | getAdnRecordsSizeForSubscriber(int subId, int efid)Get the max munber of records in efid
| public boolean | updateAdnRecordsInEfByIndex(int efid, java.lang.String newTag, java.lang.String newPhoneNumber, int index, java.lang.String pin2)Update an ADN-like EF record by record index
This is useful for iteration the whole ADN file, such as write the whole
phone book or erase/format the whole phonebook
| public boolean | updateAdnRecordsInEfByIndexForSubscriber(int subId, int efid, java.lang.String newTag, java.lang.String newPhoneNumber, int index, java.lang.String pin2)Update an ADN-like EF record by record index
This is useful for iteration the whole ADN file, such as write the whole
phone book or erase/format the whole phonebook
| public boolean | updateAdnRecordsInEfBySearch(int efid, java.lang.String oldTag, java.lang.String oldPhoneNumber, java.lang.String newTag, java.lang.String newPhoneNumber, java.lang.String pin2)Replace oldAdn with newAdn in ADN-like record in EF
getAdnRecordsInEf must be called at least once before this function,
otherwise an error will be returned
| public boolean | updateAdnRecordsInEfBySearchForSubscriber(int subId, int efid, java.lang.String oldTag, java.lang.String oldPhoneNumber, java.lang.String newTag, java.lang.String newPhoneNumber, java.lang.String pin2)Replace oldAdn with newAdn in ADN-like record in EF
getAdnRecordsInEf must be called at least once before this function,
otherwise an error will be returned
|
|