我想以編程方式在日曆中添加循環事件,即直接不使用意圖。 予用戶的以下::添加週期性事件2年
ContentResolver cr = cordova.getActivity().getContentResolver();
ContentValues values = new ContentValues();
values.put(Events.DTSTART, calendarStart.getTimeInMillis());
values.put(Events.DTEND, calendarEnd.getTimeInMillis());
values.put(Events.TITLE, title);
values.put(Events.CALENDAR_ID, 1);
values.put("rrule", "FREQ=DAILY"); //For recurring event
values.put(Events.EVENT_TIMEZONE, TimeZone.getDefault().getID());
Uri uri = cr.insert(eventsUri, values);
事件僅添加2周。我希望它被添加至少2年或更久..,也可以永遠。 我也使用過組合,但也沒有效果。笏我應該有..任何幫助更新的代碼..謝謝
PhoneGap的開發者聊天:http://chat.stackoverflow.com/rooms/ 11300/phonegap-framework – user1374