[TIMOB-6189] Android: AppProperties: Cannot retrieve property value set in tiapp.xml using Ti.App.Properties API
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2011-12-01T14:08:51.000+0000 |
Affected Version/s | Release 1.8.0.1 |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Natalie Huynh |
Assignee | Don Thorp |
Created | 2011-11-14T15:01:23.000+0000 |
Updated | 2014-06-19T12:44:01.000+0000 |
Description
We cannot retrieve the property value set in tiapp.xml using Ti.App.properties API even though it is documented in the WIKI.
http://wiki.appcelerator.org/display/guides/tiapp.xml+and+timodule.xml+Reference#tiapp.xmlandtimodule.xmlReference-Applicationproperties
Steps to Reproduce
Step1: Copy the following code in app.js
'app.js'
DEV
Step3: Run the app, and you can see the alert message is null.
Actual:
Returns Null
Expected:
Return DEV
Note:
bug from iOS 4696
Titanium.UI.setBackgroundColor('white');
var win = Titanium.UI.createWindow();
alert(Ti.App.Properties.getString("appstate"));
win.open();
Step2: Add the following line to tiapp.xml
Comments
- Thomas Huelbert 2011-12-01