[TIMOB-9350] Android: Exception when Titanium.App.Properties.getDouble is called for a value stored as an Int
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-09-07T04:55:52.000+0000 |
Affected Version/s | Release 2.0.0 |
Fix Version/s | Release 2.1.0, Sprint 2012-12 API |
Components | Release |
Labels | SupportTeam, api, module_app_properties, parity, qe-review, qe-testadded |
Reporter | Varun Joshi |
Assignee | Vishal Duggal |
Created | 2012-06-03T21:04:26.000+0000 |
Updated | 2012-09-07T04:55:52.000+0000 |
Description
Problem
When calling Titanium.App.Properties.getDouble() on iOS for a value stored via Ti.App.Properties.setInt(), the exception (as shown in the screenshot) is thrown.Steps to Reproduce
Run the app.js file below: {noformat} var win = Ti.UI.createWindow({backgroundColor:'white'}); win.open(); var l = Titanium.UI.createLabel({ text:'See Log for output', height:'auto', width:'auto' }); win.add(l); Titanium.App.Properties.setInt('Int',10); Titanium.API.info('Int: '+ Titanium.App.Properties.getDouble('Int')); {noformat} The above code works fine on iOS.Attachments
File | Date | Size |
---|---|---|
Screen Shot 2012-06-03 at 8.41.11 PM.png | 2012-06-03T21:04:26.000+0000 | 170494 |
Verified on: SDK:2.2.0.v20120815194913 Studio:2.1.1.201207271312 Devices: Samsung galaxy tab(v 3.2), android emulator No exception is thrown now for Titanium.App.Properties.getDouble call.
Reopening to update labels