title: Edit/Delete Google Calendar Events and get event Id
body: <p>I am trying to edit and delete events in Google calendar using Calendar Provider. I have already Created event using Calendar Provider .</p>
  
  <p>Here is my code to create an event :</p>
  
  <pre><code>    Calendar beginTime = Calendar.getInstance();
      beginTime.set(2014, 5, 19, 7, 30);
      Calendar endTime = Calendar.getInstance();
      endTime.set(2014, 5, 19, 8, 30);
      Intent intent = new Intent(Intent.ACTION_INSERT)
              .setData(Events.CONTENT_URI)
              .putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, beginTime.getTimeInMillis())
              .putExtra(CalendarContract.EXTRA_EVENT_END_TIME, endTime.getTimeInMillis())
              .putExtra(Events.TITLE, "")
              .putExtra(Events.DESCRIPTION, "")
              .putExtra(Events.EVENT_LOCATION, "")
              .putExtra(Events.AVAILABILITY, Events.AVAILABILITY_BUSY)
              .putExtra(Intent.EXTRA_EMAIL, email);
      startActivity(intent);
  </code></pre>
  
  <p>event is getting created successfully. now i want to edit/delete the event. so, how can i perform this. And for edit/delete i need event id for created event how i can get that??</p>
  
  <p>Please... help me guys. </p>