On Thu, Sep 29, 2011 at 1:56 AM, Hong <[email protected]> wrote: > Well this code works perfectly on phones running 1.x and 2.x: > > Intent intent = new Intent(Intent.ACTION_EDIT); > intent.setType("vnd.android.cursor.item/event"); > intent.putExtra("title", "Some title"); > intent.putExtra("description", "Some description"); > intent.putExtra("beginTime", eventStartInMillis); > intent.putExtra("endTime", eventEndInMillis); > startActivity(intent);
Except that "vnd.android.cursor.item/event" is not documented, either. As Kostya indicated, if you use undocumented/unsupported techniques, do not complain when they do not consistently work. > Solution can be either expose the Calendar content provider API or > publish the acceptable parameters to the Calendar intent. Those would be lovely. OTOH, you are also perfectly capable of using the Web APIs to modify a user's Google Calendar. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- 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

