Is there a way to add reminders to a new calendar event using Intents?

I need to support Android 2.1 and up. I know that CalendarContract isn’t available in Android 2.1, so I’ve done the following workaround.

Intent intent = new Intent(Intent.ACTION_EDIT)
                        .setType("vnd.android.cursor.item/event")
                        .putExtra("beginTime", beginTime.getTimeInMillis())
                        .putExtra("title", title)
                        .putExtra("description", description)
                        .putExtra("eventLocation", location)
                        .putExtra("allDay", allDay)
                        .putExtra(Intent.EXTRA_EMAIL, email );
                if(!allDay) {
                    intent.putExtra("endTime", endTime.getTimeInMillis());
                }

               startActivity(intent);

This works very well so far. I’ve tested on 2.1 through 4.1.

I’d like to add reminders, too, but I can’t find any documentation on how to do it using Intents. Does anyone have an example? I want to avoid adding more permissions to my manifest for writing to the calendar, so if you have a suggestion that requires that, I won’t be able to use it.

EventKit without using Calendar or Reminders App

I am curious if there is a way to use the capabilities of EventKit – creating events, recurrence rules, etc. – without actually having to interface with the Calendar and Reminders apps? A little more

How to Call Calendar in my Application using Intents?

How to Call Calendar in my Application using Intents?

Google Calendar API: Updating Reminders to an event

I am using Google calendar API. I have added reminder to an event from this code ContentValues values1 = new ContentValues(); values1.put(event_id, eventId); values1.put(method, 1); values1.put(

Add Event to Google Calendar

I’m using this code to add an Event to my Calendar $client = new Google_Client(); $client->setApplicationName(Calendar); $scopes = array(‘https://www.googleapis.com/auth/prediction’, ‘https://www

Android – Create Calendar Event from my app without default reminders

I am developing an app that creates, updates and deletes Events in native Google’s calendar. I am creating Event by following code: ContentValues cvEvent = new ContentValues(); cvEvent.put(Events.DTST

Howto intercept intents (for calendar event creation)

I would like to create a custom way to enter new events to the calendar. From what I understood it should be easy by creating an app responding to the intent being sent by the calendar app. I created

add calendar event without opening calendar

In my app, the user can set up to 3 reminders for a task, but every time I press the set reminder button it opens up the calendar app. Is there any way to set the calendar events without opening the

Add event to calendar

Is it possible to add an event (with the users permission) to Wp7’s calendar from an app? (on Mango)

Calendar Edit Event Force Close Issue

I am trying to add calendar events in the background without using Intents. Event gets saved successfully. However when i try to edit that event manually i get Force Close error. int cal_id = getCalen

Android Add Event to Calendar using Intent, get EventID

I’m trying to add event through an calendar intent. However, I can’t figure out how to get the event ID of the event just added. Intent intent = new Intent(Intent.ACTION_EDIT); intent.setType(vnd.an

Answers

If you check the stock android Calendar source code, reminders cannot be added using intent.

Instead of this calendar has a setting to set the default reminder. But some OEMs could have implemented this. So even if you find it, it will not work on all phones.