Changing the title on a TimePicker?

Sunandmoon picture Sunandmoon · Mar 21, 2011 · Viewed 10.4k times · Source

I'm trying to look for a solution to change the title on a TimePicker dialog. Right now it says whatever the system time is (ex. "12:23 AM") but I want to change this to something a little more descriptive. Does anyone have any suggestions?

Answer

Codemonkey picture Codemonkey · Mar 21, 2011

By request. :)

By TimePicker dialog do you mean the actual TimePickerDialog? Because that has a setTitle(CharSequence text) method. The TimePickerDialog is what is used in the official tutorial. http://developer.android.com/reference/android/app/AlertDialog.html#setTitle(java.lang.CharSequence)