Calendar Integration: Read events from the calendar of the device owner
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.calendarView = new RadCalendarView(this);
this.adapter = new EventReadAdapter(this.calendarView);
EventReadAdapter.getCurrentUserAsync(this, new GenericResultCallback<String>() {
@Override
public void onResult(String result) {
adapter.setEventsQueryToken(EventQueryToken.getCalendarsByOwner(result));
calendarView.setEventAdapter(adapter);
adapter.readEventsAsync();
}
});
setContentView(this.calendarView);
}