Android DatePicker Dialog

Android DatePicker:

In this session will learn to use DatePicker.

Create new project in eclipse (Android-First-Programm).

In res -> layout open “activity_main.xml” and use button.

In MainActivity.java get button reference and using Calendar class assign current date to Button.

MainActivity.java