+
+ TextView title = (TextView)findViewById(R.id.alarm_title);
+ title.setText(event.title);
+
+ final TextView startDay= (TextView) findViewById(R.id.startday);
+ final TextView endDay= (TextView) findViewById(R.id.endday);
+ final TextView startDate= (TextView) findViewById(R.id.startdate);
+ final TextView endDate= (TextView) findViewById(R.id.enddate);
+ final TextView startTime= (TextView) findViewById(R.id.starttime);
+ final TextView endTime= (TextView) findViewById(R.id.endtime);
+ final Date start=new Date(event.dtstart);
+ final Date end=new Date(event.dtend);
+ final DateFormat dateFormat = DateFormat.getDateInstance();
+ final DateFormat timeFormat = DateFormat.getTimeInstance();
+ final DateFormat dayOfWeekFormat = new SimpleDateFormat("EEEEEEE", Locale.UK);
+
+ startDay.setText(dayOfWeekFormat.format(start));
+ startDate.setText(dateFormat.format(start));
+ if(!dateFormat.format(start).equals(dateFormat.format(end))) {
+ endDay.setText(dayOfWeekFormat.format(end));
+ endDate.setText(dateFormat.format(end));
+ }
+
+ startTime.setText(timeFormat.format(start));
+ if(!start.equals(end))
+ endTime.setText(timeFormat.format(end));