我尝试在Calendar Provider中获取日历。实际上它适用于三星Nexus S(4.1.2)。这是代码:
cur = cr.query(Uri.parse("content://com.android.calendar/events"), null, "((calendar_id = ?) AND (_id = ?))", new String[]{String.valueOf(CalendarId), eventId}, null);
但三星Galaxy Note(4.0.4)(SHV-E160S)中的光标数总是0。有人有这个问题吗?
感谢您的阅读!