如题 模糊匹配!
游标包含信息:
Contacts._ID, // 0
Contacts.DISPLAY_NAME_PRIMARY, // 1
Contacts.DISPLAY_NAME_ALTERNATIVE, // 2
Contacts.SORT_KEY_PRIMARY, // 3
Contacts.STARRED, // 4
Contacts.TIMES_CONTACTED, // 5
Contacts.CONTACT_PRESENCE, // 6
Contacts.PHOTO_ID, // 7
Contacts.LOOKUP_KEY, // 8
Contacts.PHONETIC_NAME, // 9
Contacts.HAS_PHONE_NUMBER, // 10
SearchSnippetColumns.SNIPPET_MIMETYPE, // 11
SearchSnippetColumns.SNIPPET_DATA1, // 12
SearchSnippetColumns.SNIPPET_DATA4, // 13
游标包含信息:
Contacts._ID, // 0
Contacts.DISPLAY_NAME_PRIMARY, // 1
Contacts.DISPLAY_NAME_ALTERNATIVE, // 2
Contacts.SORT_KEY_PRIMARY, // 3
Contacts.STARRED, // 4
Contacts.TIMES_CONTACTED, // 5
Contacts.CONTACT_PRESENCE, // 6
Contacts.PHOTO_ID, // 7
Contacts.LOOKUP_KEY, // 8
Contacts.PHONETIC_NAME, // 9
Contacts.HAS_PHONE_NUMBER, // 10
SearchSnippetColumns.SNIPPET_MIMETYPE, // 11
SearchSnippetColumns.SNIPPET_DATA1, // 12
SearchSnippetColumns.SNIPPET_DATA4, // 13
解决方案 »
- android 调用第三方so 编译通过 提示找不到第三方so
- 联想a68e手机如何获取root权限 如何刷机啊?
- NDK编译的问题。找不到`jni/hello-jni.c'
- Android平台到底能不能通过串口发送AT指令呢,急!!!
- 在service中怎样调用另一个service中的线程?
- 关于android平台上图像处理成灰度图的问题
- 我编的安卓程序安装到我的Android2.3什么位置了?怎找不到呢
- 呼叫大神,呼叫大神,小弟有个android选项卡不会弄,没有一点头绪,请帮帮忙。
- 人生路上遇到的纠结问题,戳进来看看,帮我分析下吧。谢谢各位了
- webView与JS回调的问题
- android案例
- android /data/data
Cursor cursor = getContentResolver().query(Contacts.Phones.CONTENT_URI, null, Contacts.Phones.NUMBER+"= "+Mobile+" AND "+Contacts.Phones.TYPE+"="+Contacts.Phones.TYPE_MOBILE, null, Contacts.Phones.DEFAULT_SORT_ORDER);
cursor.moveToFirst();
String _id = cursor.getString(cursor.getColumnIndexOrThrow(Contacts.Phones.PERSON_ID));
Cursor manCursor = getContentResolver().query(Contacts.People.CONTENT_URI, null, Contacts.People._ID+"="+_id, null, People.DEFAULT_SORT_ORDER);
manCursor.moveToFirst();
String phoneicName = manCursor.getString(manCursor.getColumnIndexOrThrow(Contacts.People.PHONETIC_NAME));
...依次类推