In an activity, I ask my user about a date using a datepicker. As far as I found, the best way to pass this date to a subsequent activity is to send separately yea, month and day.
In my subsequent activity, I want to display this date, but also this date+ 1 day, + 2 days and so on.
To do it, I taught I can do :
int mDay = origine.getIntExtra("mDay", 0);
int mMonth= origine.getIntExtra("mMonth", 0);
int mYear = origine.getIntExtra("mYear", 0);
calendrier = new GregorianCalendar(mYear,mMonth,mDay);
and then put it in a string using something like
String strcal01 = sdf.format(new calendrier);
This line don't work but it works if I replace "calendrier" by "Date()" (of course with current date and not the date get from the other activity...
What can I do to make it working ?
Thank's a lot for your help.