How to set previous selected value in TimePicker?
I mean, click on TextView, TimePicker dialog occurs, then I select the time and set it in the TextView, e.g. 12:30 PM on TextView.
After that, if I want to change the time, click again to TextView and then TimePicker dialog should show the previous selected value. So the TimePicker should display 12:30 PM.
How can I do that?
If you create Time Picker Dialog with onCreateDialog and call it it will automatically store the previous value.
Use showDialog(id); to Show the Dialog.