Pregunta

I'm building a calendar provider that is synchronizing calendar events with server. When I try to delete an event it is working fine if the event is non-recurring. When I try to delete recurring event it does not show me any error or anything, but all the events from the calendar disappear. The log doesn't show me any error after that, it gives me all standard logs only, but nothing appears on the calendar after that. Here is my code that I use for deleting all the events (recurring and non-recurring):

resolver.delete(ContentUris.withAppendedId(Events.CONTENT_URI, id), null, null);

where resolver is the ContentResolver and id is the id of the event in the database.

¿Fue útil?

Solución

It was my mistake. The above code is working fine for deleting events

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top