For my purpose, I resolved it partly using a different approach. There
seems to be an undocumented Intent to bring up the Calendar UI and
fill start and end time in advance. I found out that the ZXing Apps
does it like this. Maybe this helps:
Intent intent = new Intent(Intent.ACTION_EDIT);
intent.setType("vnd.android.cursor.item/event");
intent.putExtra("beginTime", start.getTime());
intent.putExtra("endTime", end.getTime());
intent.putExtra("summary", summary);
context.startActivity(intent);
One thing I did not find out was how to prepare the event name.
Setting the summary like in the code had no effect on my G1. If
somebody finds out, I would be happy to know...
Markus
--
http://jars.de
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---