Date and Time Picker Android

You must Login before you can answer or comment on any questions.

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" ?

— answered 1 year ago by Varun Joshi
answer permalink
2 Comments
  • no, just a simple date and time picker

    — commented 1 year ago by Blueshift Local

  • W/PickerProxy( 333): Date+Time timer not supported in Titanium for Android

    that is what shows up in the console when i try to use the picker in Android

    — commented 1 year ago by Blueshift Local

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!