SufficientlySecure / birthday-calendar

Display all contact birthdays automatically in your standard Android calendar.
https://www.schuermann.eu/android/
GNU General Public License v3.0
94 stars 28 forks source link

Feature request: add contact profile picture to events #86

Closed amitkeret closed 9 years ago

amitkeret commented 9 years ago

Hello, I've been using your app and it's great, especially since it's the only one I found that displays contact age (even native Google calendar doesn't support this!)

Would be great if contact photos were displayed next to the events on the calendar. Not sure if this can be done, I've seen there's an option to specify icon URLs if you're using the calendar gadgets method for creating events, not sure if it can be used in this scenario.

See the birthday event here: image

Google birthdays take the picture from Google contacts, but I guess this app can use pictures stored locally in the phone contacts. Possible?

dschuermann commented 9 years ago

I don't think it's possible with the public API :/ . We would need a field from http://developer.android.com/reference/android/provider/CalendarContract.EventsColumns.html that allows this. I think Google implements this in their closed source calendar app by directly looking up pictures from G+ without using a public API that previously writes this using the content provider of Android.

amitkeret commented 9 years ago

What about CUSTOM_APP_PACKAGE field? Can this be used to format a custom display for the event?

dschuermann commented 9 years ago

This is already utilized. It enables the button "Open in Birthday Calendar" which opens the corresponding contact. Unfortunately, the button labelcan not be changed. I don't see a way currently to add an image directly. I already use the current public API to its maximum.