好吧,我非常精確地在這裏閱讀文檔:http://developer.android.com/guide/topics/providers/calendar-provider.html#update-event和書面的東西是這樣的:意圖修改日曆事件不起作用
// Here is an example of an intent that sets a new title for a specified event and lets users edit the event in the Calendar.
long eventID = 208;
Uri uri = ContentUris.withAppendedId(Events.CONTENT_URI, eventID);
Intent intent = new Intent(Intent.ACTION_EDIT)
.setData(uri)
.putExtra(Events.TITLE, "My New Title");
startActivity(intent);
對我來說,這是行不通的 - 它打開正確的事件,但不可能編輯它 - 所有字段都是隻讀的。只有我可以改變的領域是時區和提醒。其他所有內容都是隻讀的。難道我做錯了什麼?
我的API級別爲14(ICS)
您的API級別設置爲&您是否使用Google API? – jnthnjns
我的手機API級別爲14(也是我的應用程序編碼爲14級)&我不明白您的問題的第二部分... – qkx
當您爲項目選擇API級別時,您會看到每個級別的兩個級別。 * Android 4.0 API 14 * && * Google API's API 14 * – jnthnjns