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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…