Hi I am currently using the following code to add an event to the android’s default calendar.
Calendar cal = Calendar.getInstance();
Intent intent = new Intent(Intent.ACTION_EDIT);
intent.setType("vnd.android.cursor.item/event");
intent.putExtra("beginTime", cal.getTimeInMillis());
intent.putExtra("allDay", false);
intent.putExtra("rrule", "FREQ=DAILY");
intent.putExtra("endTime", cal.getTimeInMillis()+60*60*1000);
intent.putExtra("title", "A Test Event from android app");
intent.putExtra("description", "Who knows! this might work");
intent.putExtra("eventLocation", "Hope this time it works");
intent.putExtra("hasAlarm", 1);
startActivity(intent);
My question is,
As you can see, I have used “FREQ=DAILY”, and similarly there are values such as, “FREQ=YEARLY” and “FREQ=MONTHLY”.
I would like to know the other alternatives available, so that I can provide them in my code.
Oh. Now I got it. I had to add this to the above code.