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");
以上是我针对以下问题引用的代码:
- 从哪里获取 setType 方法的值?像这里一样,他们使用了“vnd.android.cursor.item/event”。
- 对于进入 putExtra 字段的值...就像它们在这里使用的 rrule、endtime 等。如何知道可以在这里使用哪些字符串?
- 在上面的代码中,字段rrule代表什么?
提前致谢。
最佳答案
关于android - 无法理解android中的以下代码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5987358/