......

int
index = phonesCursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER); int typeindex = phonesCursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.TYPE); int labelindex = phonesCursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.LABEL); String phoneNumber = phonesCursor.getString(index);
int phone_type = phonesCursor.getInt(typeindex);
String phoneLabel = "";
if (phone_type == ContactsContract.CommonDataKinds.Phone.TYPE_CUSTOM)   phoneLabel = phones.getString(labelindex);
else
  phoneLabel = (String) ContactsContract.CommonDataKinds.Phone.getTypeLabel(mContext.getResources(), phone_type, "");
  

......

 


相关文章:

  • 2022-01-14
  • 2021-12-24
  • 2022-12-23
  • 2022-02-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-13
  • 2021-04-02
  • 2022-12-23
  • 2021-06-01
  • 2021-11-28
  • 2022-12-23
  • 2022-02-13
相关资源
相似解决方案