I want to query commondatakinds.photo.photo for a specific contact id .. how should I put this?
A:
Using this ContactsContract.CommonDataKinds.Photo.PHOTO you can query the phone book.
Now on getting the desired index no. for the column containing icon for contact, you will get the icon from c.getBlob .... method in the form of byte array.
Then using Bitmap Factory you need to decode it to a bit map and then use that bitmap in a Imageview to display the icon ..
Thanks
success_anil
2010-10-03 00:05:37
Can you give me an example of the query syntax for ContactsContract.CommonDataKinds.Photo.PHOTO? Lets say I have contact Id 15 to work with. How do I engineer the query line for ContactsContract.CommonDataKinds.Photo.PHOTO?
Yash
2010-10-03 00:08:20