还能是这种姿势吗?这样获取到号码是不是都会加上国际区号还有长途号阿?(没有条件测试,只好来问了。)
Cursor cursor = context.getContentResolver().query(Phone.CONTENT_URI, null, null, null, null);
String phoneNumber;
while (cursor.moveToNext()) {
phoneNumber = cursor.getString(cursor.getColumnIndex(Phone.NUMBER));
mPhoneNumbers.add(phoneNumber);
}