public ArrayList<PhoneNumInfo> getPhoneNumLocalList() {
ArrayList<PhoneNumInfo> typeList=new ArrayList<PhoneNumInfo>();
ContentResolver resolver = context.getContentResolver();
Cursor cursorType = resolver.query(ContactsContract.RawContacts.CONTENT_URI,
new String[] {RawContacts._ID, RawContacts.ACCOUNT_NAME,RawContacts.ACCOUNT_TYPE},
null, null, null);
if (cursorType != null) {
while (cursorType.moveToNext()) {
PhoneNumInfo pni=new PhoneNumInfo();
pni.setPhoneID(cursorType.getInt(0));
pni.setPhoneType(cursorType.getString(1));
pni.setPhonePage(cursorType.getString(2));
typeList.add(pni);
}
}
cursorType.close();
return typeList;
}