[android-developers] Can I use some interfaces in framework?
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home