Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9350] Android: Exception when Titanium.App.Properties.getDouble is called for a value stored as an Int

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-09-07T04:55:52.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sRelease 2.1.0, Sprint 2012-12 API
ComponentsRelease
LabelsSupportTeam, api, module_app_properties, parity, qe-review, qe-testadded
ReporterVarun Joshi
AssigneeVishal Duggal
Created2012-06-03T21:04:26.000+0000
Updated2012-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

FileDateSize
Screen Shot 2012-06-03 at 8.41.11 PM.png2012-06-03T21:04:26.000+0000170494

Comments

  1. Anshu Mittal 2012-08-16

    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.
  2. Anshu Mittal 2012-09-07

    Reopening to update labels

JSON Source