我试图在 Android 中找到事件的组织者。日历查询受到打击。
String[] projection = new String[] { "calendar_id", "title", "description",
"dtstart", "dtend","organizer", "eventLocation","hasAttendeeData","_id"};
String selection = "(\" + CalendarContract.Events.CALENDAR_ID + \" = ?) OR ((dtstart >= "+cal_Start.getTimeInMillis()+") AND (dtend <= "+cal_End.getTimeInMillis()+"))";
String[] selectionArgs = new String[] { String.valueOf(1)};
Cursor cursor = context.getContentResolver()
.query(
Uri.parse("content://com.android.calendar/events"),projection
, selection,
selectionArgs, null);
cursor.moveToFirst();
我可以获得活动标题、开始日期、结束日期等。但是,组织者只返回字符串“组织者”本身。根据文档需要获取组织者的电子邮件 ID。我该如何解决这个问题