A dialog that prompts the user for the time of day using a TimePicker.
This will declare a new TimePickerDialog object.
1. Add the import below to the import section of the MainActivity.java file.
import android.app.TimePickerDialog;
TimePickerDialog myTimePickerDialog;
3. Compile and run!
Next Recommended Article: How to Instantiate a TimePickerDialog object
Resources:
http://developer.android.com/reference/android/app/TimePickerDialog.html