I was using this code to get event from calendar.
But I got error like this:
request time failed: java.net.SocketException: Address family not supported by protocol
When debugging I noticed that code crash on this line:
Cursor eventCursor = contentResolver
.query(builder.build(), new String[]
{ "title", "begin", "end", "allDay" },
"Calendars._id=" + 1, null,
"startDay ASC, startMinute ASC");
System.out.println("eventCursor count=" + eventCursor.getCount());
any idea will be helpful. Thanks.