I am trying to add event automatically but I need calendar id for this If I add event to calendar with id = 1 sometimes it does not exist or does not depend to event I add
ContentValues cv = new ContentValues();
cv.put("calendar_id", 1);
id = -1 does not work
how can I add event to default calendar. what id should I use?
You can try use this code for get a calendar id.
But check all guide - how add event to calendar.
https://stackoverflow.com/a/9749833/7046743