Is it possible to remove the Android calendar event

后端 未结 4 1747
渐次进展
渐次进展 2021-01-28 00:14

I am using the Android calendar. How can I remove a calendar event using code? Is it possible?

For clarification, I would like to mention that I don\'t want a sync proce

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-28 01:13

    Try this to delete the event using Uri of the event id.

    Uri uri='URI OF THE EVENT';
    getContentResolver().delete(uri, null, null);
    

提交回复
热议问题