ITEEDU

Andoid1.X查询电话号码

	Cursor pCur = getContentResolver().query(
	Contacts.Phones.CONTENT_URI,null,
		Contacts.Phones.PERSON_ID +" = ?",new String[]{id}, null);
	int i=0;
	int pCount = pCur.getCount();
	String[] phoneNum = new String[pCount];
	String[] phoneType = new String[pCount];
	while (pCur.moveToNext()) {
		phoneNum[i] = pCur.getString(pCur.getColumnIndex(Contacts.Phones.NUMBER));
		phoneType[i] = pCur.getString(pCur.getColumnIndex(Contacts.Phones.TYPE));
		i++;
	}