How to use the Spinner or equivalent control picker in android app?
I use the following code:
var picker = Ti.UI.createPicker();
var data = ;
but it generate error, cannot call the method 'add' with null.
Any one give solution please?
There is no Picker in Titanium now :(
But you can use OptionDialog , or create a table and when a user clicks row , it selects it.
This component is also upcoming in the 1.5.0 release - if you grab a nightly build you might be able to use it right away, otherwise I would go with Filip's suggestion.