I’m trying to create calendar for android. There is a month switcher (previous/next month). How can I call the same activity (which displays the calendar) with other parameters…
e.g. previous month will have CalendarMonth(java.util.Calendar.MONTH - 1)
and next month will have CalendarMonth(java.util.Calendar.MONTH + 1)
current month will have nothing in costructor
Hope it’s clear 🙂
Thanks for help in advance
If I understood correctly, this is what you want:
Use
Decemberinstead ofNovember, and you have effectively called your activity with different parameters. In the activity, just retrieve those extras to know which month the caller wanted.