I am trying to use the built-in Calendar Activity to create a new
event.

The code i use to start a new calendar event activity is below.

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

 The problem i am having is that the OnActivityResult method called
after saving the event has a resultcode of Activity.CANCELLED even
though the Save button was clicked and a new event was created. Also,
the Intent data param is null, which should have been the Uri to the
newly created event.


Does anyone know why the OnActivityResult behaves this way?


Thanks
Kris

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to