How to call a calendar in my application using intentions?

How to call up Calendar in my application using intentions?

+3
source share
2 answers

You will need Intentone that looks something like this:

Intent calendarIntent = new Intent(Intent.ACTION_EDIT);  
calendarIntent.setType("vnd.android.cursor.item/event");
calendarIntent.putExtra("title", "Title");
calendarIntent.putExtra("beginTime", startTimeMillis);
calendarIntent.putExtra("endTime", endTimeMillis);
calendarIntent.putExtra("description", "Description");

Then you can run it by calling this:

startActivity(calendarIntent);
+4
source

Do you mean a calendar application or form to add a new event to the calendar?

Anyway. Refer to this answer:

How can I open a calendar from my application?

0
source

All Articles