Android : How to insert several events at once into android calendar via Intents?

on Friday, January 30, 2015


I would like to insert several events at once into the android calendar. I know how to do it for a single event:



Intent intent = new Intent(Intent.ACTION_EDIT);
intent.setType("vnd.android.cursor.item/event");
intent.putExtra("title", "Some title");
intent.putExtra("description", "Some description");
intent.putExtra("beginTime", eventStartInMillis);
intent.putExtra("endTime", eventEndInMillis);
startActivity(intent);


Now I would like to add several events. I would prefer an Intent Solution, I don't want to use permissions to write into the user's calendar via the Calendar provider. Is there a way to achieve that?


0 comments:

Post a Comment