Get events from all accounts of the device and only events for today
问题 I need to get the number of events on the calendars for today. Only the number of events of all calendars, do not need anything more. I found several threads about it, but I can not get the number of events for today. using this code, the variable "events" gives me the number of all events in the first calendar. int events=0; public void read() { Context context = getApplicationContext(); ContentResolver contentResolver = context.getContentResolver(); long ntime = System.currentTimeMillis();