Using Android Contacts Activity

18 views
Skip to first unread message

Yogita Bhasin

unread,
Mar 21, 2012, 6:54:30 AM3/21/12
to pune...@googlegroups.com
Hello

I am trying to use Android Contact Activity to display People's Name and their phone numbers together. With the below stated code it displays all the phone numbers. 
Is there any way to filter only Mobile Numbers. (" Phone.Type == TYPE_MOBILE" ). 

Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType(ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE);
startActivityForResult(intent, PICK_CONTACT);

Thanks.

- Yogita Bhasin
Reply all
Reply to author
Forward
0 new messages