每次单击按钮时如何使我的程序进入不同布局的android代码,例如在自定义日历上的特定日期单击时的提醒布局
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);
}
此代码不起作用