how to delete all event in code of my calendar everything i try dose not work for me.
So i will appreciate if someone can give me a complete solution on How to Delete all my event from my calendar
Thanks for Helping!!!!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
u can’t delete a all events at a time.u can delete one by one.
first u retrieve the event id
delete a calender event
for (int i = 0; i < CNames.length; i++){Uri CALENDAR_URI = Uri.parse("content://calendar/events");Uri uri = ContentUris.withAppendedId(CALENDAR_URI,Cid[i]);getContentResolver().delete(uri, null, null);}