You can open the calendar window as follows:
Intent intent = new Intent(Intent.ACTION_INSERT);
intent.setData(CalendarContract.Events.CONTENT_URI);
startActivity(intent);
If you need to add dates use the following:
//Cria uma intent para abertura de uma nova activity.
Intent intent = new Intent(Intent.ACTION_INSERT);
intent.setType("vnd.android.cursor.item/event");
//Configurações do evento.
intent.putExtra(Events.TITLE, "Teste de Titulo");
intent.putExtra(Events.EVENT_LOCATION, "Local do evento");
intent.putExtra(Events.DESCRIPTION, "Teste de descrição");
//Configuração de data do evento
GregorianCalendar calDate = new GregorianCalendar(2014, 28, 08);
intent.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME,
calDate.getTimeInMillis());
intent.putExtra(CalendarContract.EXTRA_EVENT_END_TIME,
calDate.getTimeInMillis());
//Marca o evento como dia inteiro.
intent.putExtra(CalendarContract.EXTRA_EVENT_ALL_DAY, true);
//Define se será repetido
intent.putExtra(Events.RRULE, "FREQ=WEEKLY;COUNT=11;WKST=SU;BYDAY=TU,TH");
//Marca como privado e como ocupado.
intent.putExtra(Events.ACCESS_LEVEL, Events.ACCESS_PRIVATE);
intent.putExtra(Events.AVAILABILITY, Events.AVAILABILITY_BUSY);
If you want to use within your application, you will have to do it differently.
There is this library of third parties that I find very interesting and beautiful, it can help you.
link
Hug.