title: How can I sync events in calendar after adding event
body: <p>I am adding event like this...</p>
  
  <pre><code>public static String EVENT_URI = "content://com.android.calendar/events";
  public static String CALENDAR_URI = "content://com.android.calendar/calendars";
  
  public static Uri insert(ContentResolver cr, ContentValues cv) {
  
      Uri newEvent = null;
  
      try {
          cv.put(Event.CALENDAR_ID, 1);
          cv.put(Event.TITLE, "title");
          cv.put(Event.DESCRIPTION, "description");
          cv.put(Event.DTSTART, new Date().getTime());
          cv.put(Event.DTEND, new Date().getTime() + 1000 * 60 * 60);
          cv.put(Event.EVENT_LOCATION, "Hall: " + "+ 1000 * 60 * 60");
          cv.put(Event.HAS_ALARM, true);
          cv.put(Event.EVENT_TIMEZONE, TimeZone.getDefault().getDisplayName());
  
          newEvent = cr.insert(Uri.parse(EVENT_URI), cv);
      } catch (Exception e) {
          e.printStackTrace();
      }
  
      return newEvent;
  }
  </code></pre>
  
  <p>I want to sync with Google calendar after adding event, Is there any parameter which I have to send with <code>ContentValues</code> <strong>OR</strong> I need to fire query for <code>sync</code>.</p>
  
  <p>how this useful <a href="http://developer.android.com/guide/topics/providers/calendar-provider.html#sync-adapter" rel="nofollow">http://developer.android.com/guide/topics/providers/calendar-provider.html#sync-adapter</a></p>
  
  <p>Help!! Thanks.</p>