There is a calendar API which is quite popular.
You can find it here: https://www.b4x.com/android/forum/threads/calendar-library.12495/
I miss the feature to create a new event and also be able to define the color. As far as i understood it is only possible to read the color of events, but not possible to set them.
Perhaps someone is able to add this feature or explain how to add it
Thanks!
This feature would be very important for my app. So perhaps as a workaround i could use an intent?
Is it possible to passthru information, like starting time, description and color within an intent and the user only presses 'Save event' within the google calendar app?
Is it possible to passthru information, like starting time, description and color within an intent and the user only presses 'Save event' within the google calendar app?
This thread claims that the color can not be determined for each event when using sync-adapter. Instead you need another Calendar object with a color field. With this calendar object you can create events that are always created with this color. https://stackoverflow.com/questions/17791178/android-calendarprovider-events-color