【发布时间】:2011-09-22 08:58:25
【问题描述】:
ATM 我得到给定 CONTACT_ID 的号码和标签
String where = ContactsContract.CommonDataKinds.Phone.CONTACT_ID + " = " + contactId;
Cursor c = ctx.getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null, where, null, null);
while (c.moveToNext()) {
String number = Tools.getString(c, CommonDataKinds.Phone.NUMBER);
String label = Tools.getString(c,CommonDataKinds.Phone.LABEL);
}
Android 能够将给定数字标记为“默认数字”。 如何判断查询到的号码是否为默认号码?
【问题讨论】: