Is there any way to detect month change in android calendar view(i.e. when user changes calendar to another month) : <p>I want to get month shown in calendar view and i cant figure it out. i tried </p>

<pre><code>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);

        }
});
</code></pre>

<p>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.  </p>
