Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
712 views
in Technique[技术] by (71.8m points)

android - Calendar event intent - startActivityForResult

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...