Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-800] Picker Fails on Android

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionDuplicate
Resolution Date2011-04-15T02:36:42.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M09
ComponentsAndroid
Labelsandroid, feature, picker, release-1.6.0
Reporterbriankimjohnson (at gmail)
AssigneeDon Thorp
Created2011-04-15T02:36:41.000+0000
Updated2017-03-03T05:27:17.000+0000

Description

The basic picker causes a crash on android.

Code sample:

Taken from Kitchen Sink 1.2.1

var picker = Ti.UI.createPicker();


var data = []; data[0]=Ti.UI.createPickerRow({title:'Bananas',custom_item:'b'}); data[1]=Ti.UI.createPickerRow({title:'Strawberries',custom_item:'s'}); data[2]=Ti.UI.createPickerRow({title:'Mangos',custom_item:'m'}); data[3]=Ti.UI.createPickerRow({title:'Grapes',custom_item:'g'});


picker.add(data);

picker is set to null. Emulator errors stating Cannot call add method on value 'null'

Comments

  1. Cyo 2011-04-15

    This ticket refers to https://appcelerator.lighthouseapp.com/projects/32238/tickets/808-implement-pickers-for-android"> https://appcelerator.lighthouseapp.com/projects/32238/tickets/808-i... ticket where picker are not implemented

  2. Stephen Tramer 2011-04-15

    Assigning to Don for triage, but I'm pretty sure Android has a picker now...

  3. Don Thorp 2011-04-15

    No longer valid.

  4. Lee Morris 2017-03-03

    Closing issue due to time passed and irrelevance of the ticket.

JSON Source