I am trying to figure out why I can't seem to pass a photo Uri (Uri.parse(http://url/image.png)) to the contacts app via ContactsContract.Directory
I have a web service which allows searching of an address book. One of the returned fields is a url of the contact which resides on a webserver which I have verified is accessible from my Honeycomb Tablet.
My ContactsContract.Directory seems to be working flawlessly returning results, but when I pass back as part of the FILTER query Contacts.PHOTO_THUMBNAIL_URI w/ the Uri.parse(http://url/image.png) the search results still return as expected, but I still only see the temporary template.
The uri for the directory query has an option for photo supported.
if (column.equals(Directory.PHOTO_SUPPORT)) {
row[i] = Directory.PHOTO_SUPPORT_FULL;
}
I have tried all combinations of Directory.PHOTO_SUPPORT* and none seem to make a difference.
My only thought is that the contacts app does not support downloading photos from a URL. So I also tried
File myFile = new File("/sdcard/testuser.jpg");
row[photoUri] = Uri.fromFile(myFile);
And I verified that testuser.jpg was on the sdcard. This worked fine. However due to the way the directory search is done I would like to load it on the fly, and not cache (for the time being) to the sdcard.
Any help would be appreciated.