I am developing an app that creates, updates and deletes events in native Google's calendar. I am creating an event by following code:
ContentValues cvEvent = new ContentValues();
cvEvent.put(Events.DTSTART, startMillis);
cvEvent.put(Events.DTEND, endMillis);
cvEvent.put(Events.TITLE, strJobName);
cvEvent.put(Events.CALENDAR_ID, mlCalendarID);
cvEvent.put(Events.EVENT_TIMEZONE, "America/Los_Angeles");
Uri uriEvent = crEvent.insert(Events.CONTENT_URI, cvEvent);
But the problem is that this event creates a default reminder as set by the user within his calendar (Google).
I am also allowing users to add reminders within my app. So, when he adds a reminder, I am inserting reminders into the default Google Calendar. That has no issues. But when user is not adding any reminder in my app, the default google calendar creates default reminder. Can anyone tell me how to solve this issue?
P.S: I am not using Sync Adapters. I am creating and deleting events and reminders through my own logic.
I tried using
values.put(Events.HAS_ALARM, 0);
But, it is of no use.