0
我想加入Android的Google日历事件在本月与标题描述和报警激活特定的一天所有接受参数,在Android的Google日历与活动添加事件
我已经找到答案了类似的问题已在此形式的代码(但是我不知道这是正确的)
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);
startActivity(intent);
什么是接受特定还月,日,标题,描述,位置等的意图额外的钥匙吗?
哪些月份和日子的参数? – AndreaF 2012-07-12 15:50:51
beginTime和endTime,它们是日期。 – AMerle 2012-07-12 15:55:10
那么......以及什么是正确的格式来正确地得到一个字符串的日期,例如假设在2012年10月18日16:14的事件...谢谢 – AndreaF 2012-07-12 15:58:03