For example:
 I want to get the SIM card contacts storage information in Contacts
app, I used "IccPhoneBook" interface like this below:

   try {
            IIccPhoneBook iccIpb = IIccPhoneBook.Stub.asInterface(
                    ServiceManager.getService("simphonebook"));
            if (iccIpb != null) {
                 int size[] =
iccIpb.getAdnRecordsSize(IccConstants.EF_ADN);
            }
        } catch (RemoteException ex) {
            // ignore it
        }

What do you think of this solution? Someone told me that's bad
solution. Is there a better solution? Thanks very much!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to