How to Declare a TimePickerDialog object

TimePickerDialag was added in API Level 1
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;

2. Add the below line to the onCreate method.

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