Ok, so I just switched my TimePickerDialog to the TimePickerDialog widget, which is directly displayed in the action I'm working on, due to customer requirements.
The problem is that when I click any of the arrows on the specified TimePicker , I get a NullPointerException.
Just to make it clear, no code that has ever been attached to TimePicker , other than this line in the onCreate() method of my activity:
((TimePicker) findViewById(R.id.time_picker)).setIs24HourView(true);
I found this post in Google forums regarding this issue, but didn’t help much.
Here is my error log , I, unfortunately, do not think it will be very useful.
This problem only occurs when testing in ICS (Android 4.0+). Could anyone solve this problem?
source share