Monday, July 5, 2010

[android-developers] Using contacts

I have an issue regarding the use of contacts in my Android
application. I currently do the following:

Intent intent = new Intent(Intent.ACTION_PICK, People.CONTENT_URI);
startActivityForResult(intent, PICK_CONTACT);


which allows me to pick a contact. 2 Questions:

- How do I limit this to only contacts with a mobile number
- Why does the intent not honour the way I have set up my contacts on
the phone itself? I have set up the contacts so it will not use gmail
and facebook ones, just phone ones however using the Intent I see them
all

Lieuwe

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate