Modified Calendar code in ScheduleActivity to make it work for all API levels. Partial testing is done.