Sunday, April 15, 2012

[android-developers] Re: Search a contact using phone number

Atif, when you are working with contacts and your code works on the
emulator but not on the device, it's usually the case that a contact
entry on your phone is different than what you've thought. To
elaborate, I guess you synchronized your phone with your GMail, right?
In this case when you query your contacts, you also get entries which
consist purely of e-mail addresses, without names etc. If you assumed
that every contacts should have a name, your code would probably crash
then. As Justin already suggested, debug your code, investigate your
contact objects and change the logic of your code accordingly.

-------------------------------------------------
Ali Chousein
http://socialnav.blogspot.com | http://twitter.com/socialnav1
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
http://www.codeproject.com/KB/android/PayGol-Android.aspx
http://geo-filtered-assistant.blogspot.com

--
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