Tuesday, August 27, 2013

Time Picker Problem

An apparent discovery today being that, the android time picker actually doesnt update the time, when the "setIs24Hours" function is called. hence showing 10 am no matter if its 10 am or 10 pm when switching to 24hr clock.

The work around ive found for this problem, is quite a bit of common sense, but not very obvious, you have to set the time format to 24/12 hr clock before actually setting the time. This will avoid this problem.

BEST PRACTICE : Always do the settings of a object before assigning any values.

Well comments and views are welcome, till next time!

No comments:

Post a Comment