This is not a public API, please don't use it. On Thu, Jun 18, 2009 at 1:24 AM, Karima <[email protected]> wrote:
> > 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> > > > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

