鈍足ランナーのIT日記

走るのが好きな5流のITエンジニアのブログ。

趣味の範囲は広いけど、どれも中途半端なクソブロガー楽しめるWebアプリを作ってあっと言わせたい。サーバーサイドPerl(Mojolicious)、クライアントサイドVue.js。Arduinoにも触手を伸ばす予定。

intentでカレンダーを再編集できない

新規登録はできるのですが、再編集するのですが、
完了ボタンを押しても値が反映されないのです。

Uri uri = ContentUris.withAppendedId(CalendarContract.Events.CONTENT_URI, mLastEventId);
long currentTimeMillis = System.currentTimeMillis();
Intent intent = new Intent(Intent.ACTION_EDIT)
.setData(uri)
.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, mStartTimeMills)
.putExtra(CalendarContract.EXTRA_EVENT_END_TIME, currentTimeMillis);
startActivity(intent);

stackoverflow.com

参った。

Issue 39402 - android - ACTION_EDIT doesn't work for events in the stock Calendar app - Android Open Source Project - Issue Tracker - Google Project Hosting

実機でダメだったらあきらめるか

作成した Android アプリを実機にインストール | アプリ開発覚書

結局、実機のGoogle Calendar,Asus Calendar,CalどれもNGでした。
なんでやろ。