I was trying to use de google calendar api (i sent a message with an error about this this afternoon, thanks to Mark Murphy again) when i realised that i can use the android own calendar content provider since it is connected with google calendar so I found this
http://www.developer.com/ws/article.php/3850276/Working-with-the-Android-Calendar.htm and the code there works great, I can create events and retrieve existing calendars. But when I try to create a calendar, it works, but it doesnt synchronice this new-created calendar with google calendar. this is the code: private int createCalendar() { Uri calendars = Uri.parse("content://calendar/calendars"); ContentValues calendar = new ContentValues(); calendar.put("name", "calendario-Prueba"); calendar.put("selected", 1); Uri url = getContentResolver().insert(calendars, calendar); Log.d(Constants.LOGTAG, url.toString()); return Integer.parseInt(url.getLastPathSegment()); } It works (but doesnt synchronice) with and without the line > calendar.put("selected", 1); any idea?? thanks in advance! -- 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

