Skip to content
Advertisement

Android: CalendarView and Button not able to share data

I’m creating an application that lets user to list down school assignment and the deadline.

JavaScript

In the OnClickListerner, the “selectedDate” is highlighted as an error. Is there a way to solve the issue?

Advertisement

Answer

The selectedDate is defined in another scope so it is not visible for OnClickListerner. You can move it to the onCreate method scope.

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement