GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-03-19T23:04:38.000+0000 |
Affected Version/s | Release 2.1.4, Release 3.0.2 |
Fix Version/s | Release 3.1.0, 2013 Sprint 06 API, 2013 Sprint 06 |
Components | Android |
Labels | qe-testadded |
Reporter | Tim Poulsen |
Assignee | Vishal Duggal |
Created | 2013-03-01T13:11:30.000+0000 |
Updated | 2014-12-17T16:03:04.000+0000 |
Programmatically setting the value of a text field to a non-string value crashes the app on Android. You get a force-close message and a Java dump that does not indicate the nature of the problem. Explicitly casting the value as a string before setting it eliminates the problem.
Expected results: non-string data types should be converted to strings internally, matching JavaScript's typical auto-casting behavior. This is what happens on iOS.
To reproduce, unzip the attached file. Drop its app folder into a new Alloy project. Build for the Android emulator or device. Click the button.
Pull pending https://github.com/appcelerator/titanium_mobile/pull/3987
Environment used for verification - Titanium SDK: 3.1.0.v20130320190115 Titanium Studio:3.0.2.201302151605 Device: LG-P970 Android 2.2.2