ITeye博客

我才是大宝贝的博客

我才是大宝贝 · 共 1 篇文章

Android获得手机通讯录 同时将联系人排序

private void getContact() { Cursor cursor = getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null); if(cursor.moveToFirst()) { while(!cursor.isAfterLast()) { String contactId = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts._ID)); String name = c…

2011-09-18 14:28 · 评论(0)