Guest User

Untitled

a guest
Jan 20th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. String[] projection = new String[] { BaseColumns._ID};
  2. String selection = CalendarContract.Events.DTSTART + " <= ? AND "
  3. + CalendarContract.Events.DTEND + ">= ? AND "
  4. + CalendarContract.Events.AVAILABILITY + "=="
  5. + CalendarContract.Events.AVAILABILITY_BUSY;
  6.  
  7. Cursor cur = ctx.getContentResolver().query(CalendarContract.Events.CONTENT_URI, projection,
  8. selection,
  9. new String[] {String.valueOf(System.currentTimeMillis()), String.valueOf(System.currentTimeMillis())},
  10. null);
Add Comment
Please, Sign In to add comment