Is it possible to get the value of the month from the displayed month in a calenderView? I have already tried...
calenderView1.setOnDateChangeListener(new OnDateChangeListener() {
@Override
public void onSelectedDayChange(CalendarView view, int year,
int month, int day) {
SimpleDateFormat df = new SimpleDateFormat("MMMM");
String result = df.format(month);
System.out.println(" MONTH IS " + result);
monthshowing = result;
System.out.println(" MONTH IS NOW " + monthshowing);
button1.setText(monthshowing);
}
});
but this returns December as the monthshowing. Also as I continue to scroll December remains and OnDateChangeListener no longer responds.