How to display weekdate in single textview.
I have a following code as below. which show week date as a string in logcat.
Calendar c = Calendar.getInstance();
// Set the calendar to tuesday of the current week
c.set(Calendar.DAY_OF_WEEK, Calendar.TUESDAY);
c.add(Calendar.DATE, week * 5);
c.add(Calendar.WEEK_OF_YEAR, week); //February
// Print dates of the current week starting on Monday
SimpleDateFormat df = new SimpleDateFormat("E dd yyyy", Locale.US);
for (int i = 0; i < 5; i++) {
//System.out.println(df.format(c.getTime()));
String string= df.format(c.getTime());
Log.d("", "MY YEAR OF MONTH=="+string); //[TUE 25 2014, WED 26 2014, THU 27 2014, FRI 28 2014, SAT 01 2014]
c.add(Calendar.DAY_OF_MONTH, 1);
//But this textview show only last date(sat 01 2014).
textView.setText(string);
MY question is how to show all week dates in single texview. above textView.setText(string); show only last date, but i want whole week date in single textview.
Thanks