When I tried to compile my application for Android with a Data and Time picker set, it says that it is not compatible with Android, but in the online docs it says it is Android compatible. Am I missing something?
5 Answers
Accepted Answer
ok, you can not use date and time picker type in android because it's only for iPhone and iPad just check this online doc for picker
Just to confirm...are you using any properties that are not in Android implementation of date/time picker like the "countDownDuration" ?
bump! Can anyone help at all?
Check this out: http://developer.appcelerator.com/question/131157/is-it-possible-to-use-tiuipickertypedateandtime-for-android-in-sdk-18
Titanium doesn't provide this pre built for Android yet, so you will have to create two pickers, one for time and another for date ...
Quoting 'The Zero' (explaining how to do it): "Yah, It sets the whole Date object, So one will be default either date or time. You to merger them both in a single Date object using Date function like getting time and setting that in to the object obtain from Date picker or getting Date and setting in to the objects obtain from Time picker."
I hope it helps :)
Your Answer
Think you can help? Login to answer this question!