/** * 从SIM卡中读取联系人信息 * @return */ private Cursor getContacts() { Uri uri = Uri.parse("content://icc/adn");//Contacts.People.CONTENT_URI; // Uri uri = Uri.parse("content://sim/adn"); String[] projection = new String[] { "name", "phone" }; String selection = null; String[] selectionArgs = null; String sortOrder = "name"//Contacts.People.NAME// Contacts.PeopleColumns.DISPLAY_NAME + " COLLATE LOCALIZED ASC"; return managedQuery(uri, projection, selection, selectionArgs, sortOrder); }
android 从SIM卡获取联系人信息
最新推荐文章于 2019-05-28 22:03:40 发布