title: How to get attendes email or name from Calendar
body: <pre><code> public static ArrayList&lt;String&gt; readCalendarEvent(Context context) {
  Cursor cursor = context.getContentResolver()
      .query(Uri.parse("content://com.android.calendar/events"), new String[] {
          "_id", "title", "description", "dtstart", "dtend", "eventLocation"
      }, null, null, null);
  cursor.moveToFirst();
  // fetching calendars name
  String CNames[] = new String[cursor.getCount()];
  
  // fetching calendars id
  nameOfEvent.clear();
  startDates.clear();
  endDates.clear();
  Id.clear();
  descriptions.clear();
  int idIdx = cursor.getColumnIndexOrThrow(CalendarContract.Events._ID);
  
  for (int i = 0; i &lt; CNames.length; i++) {
  
    Id.add(cursor.getString(idIdx));
    nameOfEvent.add(cursor.getString(1));
    startDates.add(getDate(Long.parseLong(cursor.getString(3))));
    //endDates.add(getDate(Long.parseLong(cursor.getString(4))));
    descriptions.add(cursor.getString(2));
    CNames[i] = cursor.getString(1);
    cursor.moveToNext();
  }
  final String query = "(" + CalendarContract.Attendees.ATTENDEE_NAME + " = ?)";// for event Id
  final String[] args = new String[] { "Test ca" };
  final List&lt;Attendee&gt; attendeeName =
      Attendee.getAttendeesForQuery(query, args, null, context.getContentResolver(), context);
  return nameOfEvent;
  </code></pre>
  
  <p>}</p>
  
  <pre><code>  public static String getDate(long milliSeconds) {
      SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss a");
      Calendar calendar = Calendar.getInstance();
      calendar.setTimeInMillis(milliSeconds);
      return formatter.format(calendar.getTime());
    }
  </code></pre>
  
  <p>This is my code using this code i am able to get event Name ,time and location i want to get attendess and orgniser also using calendar  from event please suggest me how to get list of attendees . Test cs is my test event</p>