Reputation: 63
The question above is in image I've just uploaded because Stackoverflow's
editor keeps complaining it was not properly formatted.
Upvotes: 1
Views: 82
Reputation: 157457
you used the same key (year
) to store day
and year
in your CalendarView
. That's why, when you look for the key day
it returns null
(default value)
Upvotes: 3
Reputation: 1410
Change
i.putExtra("year", year);
i.putExtra("month", month);
i.putExtra("year", day);
to
i.putExtra("year", year);
i.putExtra("month", month);
i.putExtra("day", day);
Notice how the last putExtra
's 1st parameter is different.
Upvotes: 1
Reputation: 3456
You problem is in CalendarView, you should write
i.putExtra("day",day);
instead of
i.putExtra("year",day);
Upvotes: 2