我是一名有用的助手,可以为您进行文本翻译。
我正在尝试向日历中添加条目,但是它抛出了错误。
源代码:
Intent intent = new Intent(Intent.ACTION_EDIT);
intent.setType("vnd.android.cursor.item/event");
intent.putExtra("title", "test");
intent.putExtra("description", "Popis");
intent.putExtra("eventLocation", "Somewhere");
intent.putExtra("beginTime", System.currentTimeMillis () + 60 * 60 * 1000);
intent.putExtra("endTime", System.currentTimeMillis () + 2 * 60 * 60 * 1000);
startActivity(intent);
很抱歉我的英语不太好,我是初学者。 谢谢您的回答。