I want to get month shown in calendar view and i cant figure it out. i tried
calendarView.setOnDateChangeListener(new CalendarView.OnDateChangeListener() {
@Override
public void onSelectedDayChange(CalendarView view, int year, int month,
int dayOfMonth) {
int d = dayOfMonth;
int m = month;
Log.d("month", "" + m);
String curDate = String.valueOf(d);
}
});
but it only triggers when user click to the days of month. What i want is when user changes the month i want the changed month(i.e. the month shown in calendar view.) Any help would be appreciated. Thanks in advance.