Today I was trying to use the TimePickerDialog
but I noticed a couple of flaws.
The API I'm using is 18.
Anyone else has experienced these problems? How did you solve them?
You hould use already given method of View class:
new TimePickerDialog.OnTimeSetListener() {
@Override
public void onTimeSet(TimePicker view, int hour, int minute) {
if (view.isShown()) {
// This method will return true only once...
}
}
};