You can get the uri of the contact photo as following: //Get the uri of the person whose photo you want Uri person = ..... ; //Make the uri of the photo by appending photo's directory name. Uri.withAppendedPath(person, Contacts.Photos.CONTENT_DIRECTORY);
On 2월11일, 오전1시03분, code_android_festival_way <[email protected]> wrote: > Well at the moment I'm trying to set the contact photo in a custom > view to the RemoteView of my custom expaneded statur bar. > > For setting an image to the RemoteView I have two possibilities: > > contentView.setImageViewUri(...) > contentView.setImageViewResource(...) > > Well now I got the problem that I don't have a static > ImageViewResource and the method "loadContactPhoto(...)" just delivers > a Bitmap which I can't set to the RemoteView. > > Now my question. Is there a possibility to get the Uri to the contact > photo of a specific contact? Or how could I reach the above mentioned > behaviour? > > I'm looking forward reading your answers. > > Thanks for your help. > > Regards. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

