Android的创建日历事件日历、事件、Android

由网友(帆布素颜女汉子)分享简介:我需要为Android应用程序创建多个日历事件,使用此question我能创造一个事件。 I need to create multiple calendar event for Android application, Using this question I was able to create single...

我需要为Android应用程序创建多个日历事件,使用此question我能创造一个事件。

I need to create multiple calendar event for Android application, Using this question I was able to create single event.

是否有创建多个日历事件的任何例子或指导?

Is there any example or guide for create multiple calender events?

感谢你, Chandana

Thank You, Chandana

推荐答案

将这些函数中的

喜欢

public void calenderevent(Calendar begintime, Calendar endtime){

    Intent intent = new Intent(Intent.ACTION_EDIT);
    intent.setType("vnd.android.cursor.item/event");
    intent.putExtra("beginTime", begintime.getTimeInMillis());
    intent.putExtra("allDay", true);
    intent.putExtra("rrule", "FREQ=YEARLY");
    intent.putExtra("endTime", endtime.getTimeInMillis()+60*60*1000);
    intent.putExtra("title", "A Test Event from android app");
    startActivity(intent);
}
阅读全文

相关推荐

最新文章