Problem found: https://code.google.com/p/android/issues/detail?id=60589 It was really difficult to find the bug, but I've found it...
On Wednesday, 25 September 2013 11:07:44 UTC+1, drjunior wrote: > > I have this piece of code that creates events with repetition (RRULE) in > the main user's calendar: > > Calendar beginTime = Calendar.getInstance(); > #increment one day to the actual time (just for precaution) > beginTime.add(Calendar.HOUR, 1); > beginTime.add(Calendar.DAY_OF_YEAR, 1); > startMillis = beginTime.getTimeInMillis(); > > ContentResolver cr = getContentResolver(); > ContentValues values = new ContentValues(); > values.put(Events.DTSTART, startMillis); > values.put(Events.TITLE, "eventitle bla bla bla"); > values.put(Events.DESCRIPTION, "description bla bla bla"); > values.put(Events.CALENDAR_ID, calID); > values.put(Events.RRULE, "FREQ=DAILY;WKST=MO"); > values.put(Events.DURATION, "P3600S"); > values.put(Events.EVENT_TIMEZONE, "Europe/Lisbon"); > Uri uri = cr.insert(Events.CONTENT_URI, values); > > I've tested this piece of code during more than 3 weeks and it was working > perfectly. Then suddenly it started not working!! > I've created another app only with that part of the code that creates the > event and it works, unexpectedly! > So, the same code running on different apps has different effects(one > creates the events and the repetitions correctly and the other don't). > > Is it possible that google calendar provider denied/prohibited my app with > package x of creating new events with repetition? > > -- 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 --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

