Found : http://caustiq.esoteriq.org/nb/

Uri uri = Uri.parse("content://calendar/events");
ContentResolver cr = context.getContentResolver();

ContentValues values = new ContentValues();
values.put("eventTimezone", "EST");
values.put("calendar_id", 1); // query content://calendar/calendars
for more
values.put("title", "Party over thurr");
values.put("allDay", 0);
values.put("dtstart", dtstart); // long (start date in ms)
values.put("dtend", dtend);     // long (end date in ms)
values.put("description", "Bring computers and alcohol");
values.put("eventLocation", "ZA WARULDO");
values.put("transparency", 0);
values.put("visibility", 0);
values.put("hasAlarm", 0);

cr.insert(uri, values);

With :

    ...
    <uses-permission android:name="android.permission.WRITE_CALENDAR" /
>
    <uses-permission android:name="android.permission.READ_CALENDAR" /
>
</manifest>

--~--~---------~--~----~------------~-------~--~----~
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