如何在Android Java中使用通配符来获取SIM卡联系人 [英] how to use wildcard characters to fetch sim contacts in android java
本文介绍了如何在Android Java中使用通配符来获取SIM卡联系人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已使用以下查询/代码在android中获取SIM卡联系人
光标光标= ContentResolver.query(callUri,null," ,null,null);
但这无法正常工作,而是获取整个联系人.因此,请以该答复回答我应该使用什么查询以及要获取联系人姓名的cloumn_name.
解决方案
基于 ^ ]我认为您应该使用DISPLAY_NAME
.
有关更多信息,请访问: http://developer.android.com/resources/articles/contacts.html [ ^ ]
附加链接:
http://stackoverflow.com/questions/3208061/android-how-to-access-the-sim-contact-table-using-the-sdk [ http://androidforums.com/samsung- galaxy-s2-international/329715-accessing-sim-import-export-contacts-galaxy-s2.html [ http://androidcommunity.com/forums/f4/sim-contacts-2463/ [ ^ ]
>
hi,
I have used following query/code to fetch sim contacts in android
Cursor cursor = ContentResolver.query(callUri,null,"name LIKE 'AN'%",null, null);
but this is not working instead fetching whole contacts. So please reply with that what query I should use to fetch and what the cloumn_name to fetch contacts name.
解决方案
Based on this article[^] i think you should useDISPLAY_NAME
.
More at: http://developer.android.com/resources/articles/contacts.html[^]
Additional links:
http://stackoverflow.com/questions/3208061/android-how-to-access-the-sim-contact-table-using-the-sdk[^]
http://androidforums.com/samsung-galaxy-s2-international/329715-accessing-sim-import-export-contacts-galaxy-s2.html[^]
http://androidcommunity.com/forums/f4/sim-contacts-2463/[^]
这篇关于如何在Android Java中使用通配符来获取SIM卡联系人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文