title: CalendarContract Events : bad id inserted, Calendar corrupted in Android
body: <p>I made a mistake on testing insert Events using CalendarContract.</p>
  
  <p>I set my own _ID in a Events insert.</p>
  
  <pre><code>values.put(Events._ID, "156498713465");
  </code></pre>
  
  <p>Now, all my new events are created with a bad id (for exemple -535191590).</p>
  
  <p>When I click to the event in the Google Calendar Application, it crash.</p>
  
  <p>I have the same error as this thread : 
  <a href="https://stackoverflow.com/questions/19769952/calendar-corrupted-in-android">Calendar corrupted in Android</a></p>
  
  <p>I tried to delete all bad events :</p>
  
  <pre><code>activity.getContentResolver().delete(Events.CONTENT_URI, Events._ID + " &gt; ? ", 
  new String[] { "10000" });
  </code></pre>
  
  <p>But when a new events are inserted, a bad id is generated.</p>
  
  <p>My question is :
  Where can I reset the Events Id sequence ?</p>
  
  <p>Thanks,
  Regards</p>