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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

