I have the following code for adding event to calendar.
The problem is that I don\'t know how to retrieve the default calendar id.
l
There's a IS_PRIMARY column in CalendarContract.CalendarColumns. You query with selection:
CalendarContract.CalendarColumns
CalendarContract.CalendarColumns.IS_PRIMARY + "=1"
However, this is since SDK 17