How to Declare a new DatePickerDialog object

DatePickerDialag was added in API Level 1
A simple dialog containing an DatePicker.
This will declare a new DatePickerDialog object.

1. Add the import below to the import section of the MainActivity.java file.

import android.app.DatePickerDialog;

2. Add the below line to the onCreate method.

DatePickerDialog myDatePickerDialog;

3. Compile and run!

Next Recommended Article: How to Instantiate a DatePickerDialog object

Resources:
http://developer.android.com/reference/android/app/DatePickerDialog.html