title: How to get all the events from calendar?
body: <p>Hi I am able to get events using this code</p>
  
  <pre><code>cur = null;
      cr = getContentResolver();
  
  
      // Construct the query with the desired date range.
      Uri.Builder builder = Instances.CONTENT_URI.buildUpon();
  
      ContentUris.appendId(builder, 0);
      ContentUris.appendId(builder, endMillis);
  
  
      // Submit the query
      cur =  cr.query(builder.build(), 
          INSTANCE_PROJECTION, 
          null, 
          null, 
          null);
  </code></pre>
  
  <p>but as you see I can get only events within the given time duration, but I need all the events (no any time specification excluding repeated events)  is this possible ? and how ?
  please help me.</p>
  
  <pre><code>cur =  cr.query(Uri.parse("content://com.android.calendar/events"), 
          INSTANCE_PROJECTION, 
          null, 
          null, 
          null);
  </code></pre>
  
  <p>it gives the error java.lang.IllegalArgumentException: </p>