4
我正在嘗試向日歷中添加條目,但它引發了錯誤。Android:在日曆中添加條目
的源代碼:
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);
對不起,我的英語我是初學者。 感謝您的回答。
我已經解決了這個問題。 – Husky 2011-04-09 18:18:06
提高您的聲譽發佈您的解決方案的答案。那麼你可以接受它作爲正確的答案。我們都會從中獲益。 :) – techiServices 2011-04-13 06:35:26
感謝分享! :) – cV2 2011-07-23 15:17:54