title: How to Add Calendar event in android api level greater than 8?
body: <p>How to add Calendar event in android api level greater than 8?</p>
  
  <pre><code>ContentResolver cr = getContentResolver();
  Cursor cursor = null;
  try{
      if(Build.VERSION.SDK_INT &gt;= 8){
          cursor=cr.query(Uri.parse("content://com.android.calendar/reminders"), null, null, null, null);
      }else {
          cursor=cr.query(Uri.parse("content://calendar/reminders"), null, null, null, null);
      }
  </code></pre>
  
  <p>but I got cursor null in api level 8 to 10 and but it work on api 4.2.
  how to get this cursor for calendar events or remindar?</p>