Calendar event intent - startActivityForResult

不羁的心 提交于 2019-12-18 06:56:22

问题


I want to create an event into the calendar from my app. I can start a new event activity with:

Intent intent = new Intent(Intent.ACTION_EDIT).setData(uri);
intent.setType("vnd.android.cursor.item/event");
startActivityForResult(intent, REQUEST_ID);

Is it possible to get the ID of the created event? OnActivityResult resultCode is always 0 - whether I create the event or not. The data is always null. Is there some way to do it?

来源:https://stackoverflow.com/questions/11508511/calendar-event-intent-startactivityforresult

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!