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");
The above is the code i am reffering to for the following questions:
- where to get the values for setType method? Like here they have used "vnd.android.cursor.item/event".
- For values that go into the putExtra field...like they have used over here rrule,endtime etc开发者_如何学运维. How to know which strings can be used over here?
- In the above code , what does the field rrule stand for?
thank you in advance.
As i can see, this code is related to calendar event creation.
rrule is a repetition rule, see http://www.ietf.org/rfc/rfc2445.txt
EDIT It seems like there are no documentation on that and a only one way is to inspect platform code.
精彩评论