我试图在Android中找到活动的组织者。 日历查询是打击。查找活动组织者 - 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。 我该如何解决此问题
如果我的回答没有解释您所看到的内容,请将代码放在您要从光标中提取组织者和其他字段的位置。 –