I wrote simple code for deleting all entries from android calendar,but it didn\'t delete nothing.
Source code:
public void DeleteEvent(View view){
use this code its right
public void DeleteEvent(int your_event_id){
int iNumRowsDeleted = 0;
Uri eventsUri = Uri.parse("content://com.android.calendar/events");
Cursor cur = getContentResolver().query(eventsUri, null, null, null, null);
while (cur.moveToNext()){
Uri eventUri = ContentUris.withAppendedId(eventsUri, your_event_id);
iNumRowsDeleted = getContentResolver().delete(eventUri, null, null);
}
}