How it works...
An instance of the Android class is created by name app. By invoking the dialogCreateDatePicker() method, the date picker is displayed; the initial date being displayed is 10 July 2018. You can scroll to any day, month, and year by selecting the + (plus) or - (negative) symbols. The Date Picker dialog is dismissed or made invisible when the user clicks the OK button. Using the dialogGetResponse() method, the date selected by the user is accessed and assigned to the response object. The day in the response object is accessed by invoking the get() method on it and passing the day parameter to it. Similarly, the month and year selected in the response object are accessed by invoking the get() method on them and passing the
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access