I am trying to get the calendar events, I used the code below,
public static ArrayList<CalendarEvents>calendarEvents;
calendarEvents = new ArrayList<CalendarEvents>();
String[] projection = new String[] { "calendar_id", "title", "description","dtstart", "dtend","organizer", "eventLocation"};
Cursor cursor = context.getContentResolver()
.query(
Uri.parse("content://com.android.calendar/events"),projection
, null,
null, null);
The result getting all the evnets including birthdays, hloydays,etc... I want to filter user created events.