The following code almost works; it creates a calendar, and I can see
this new calendar when I go to the Calendar application and select the
'Add calendars' menu. However, I cannot assign events to the new
calendar, and the new calendar disappears after I make the attempt.
Is this correct? Is it supposed to work on the G1?
static final String DEFAULT_TIMEZONE = "America/New_York";
String name = "TEST";
ContentValues m = new ContentValues();
m.put(Calendars.NAME, name);
m.put(Calendars.DISPLAY_NAME, name);
m.put(Calendars.COLOR, "0xff123456");
m.put(Calendars.TIMEZONE, DEFAULT_TIMEZONE);
m.put(Calendars.SELECTED, 1);
mResolver.insert
(android.provider.Calendar.Calendars.CONTENT_URI,
m);
Thank you for any help.
Kit
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---