{ "id": "82715", "key": "TIMOB-6189", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2011-12-01T14:08:51.000+0000", "created": "2011-11-14T15:01:23.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:44:01.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "We cannot retrieve the property value set in tiapp.xml using Ti.App.properties API even though it is documented in the WIKI.\r\nhttp://wiki.appcelerator.org/display/guides/tiapp.xml+and+timodule.xml+Reference#tiapp.xmlandtimodule.xmlReference-Applicationproperties\r\n\r\nSteps to Reproduce\r\nStep1: Copy the following code in app.js\r\n'app.js'\r\n{code}\r\nTitanium.UI.setBackgroundColor('white');\r\n\r\nvar win = Titanium.UI.createWindow();\r\nalert(Ti.App.Properties.getString(\"appstate\"));\r\nwin.open();\r\n{code}\r\nStep2: Add the following line to tiapp.xml\r\nDEV\r\nStep3: Run the app, and you can see the alert message is null.\r\n\r\nActual:\r\nReturns Null\r\n\r\nExpected:\r\nReturn DEV\r\n\r\nNote: \r\nbug from iOS 4696", "attachment": [], "flagged": false, "summary": "Android: AppProperties: Cannot retrieve property value set in tiapp.xml using Ti.App.Properties API", "creator": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Studio: 1.0.7.201111111956\r\nSDK: 1.8.0.1.v20111114102656 on\r\nXoom 3.2.1", "comment": { "comments": [ { "id": "174488", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-01T14:08:51.000+0000", "updated": "2011-12-01T14:08:51.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }