Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6189] Android: AppProperties: Cannot retrieve property value set in tiapp.xml using Ti.App.Properties API

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2011-12-01T14:08:51.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterNatalie Huynh
AssigneeDon Thorp
Created2011-11-14T15:01:23.000+0000
Updated2014-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'
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 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

Comments

  1. Thomas Huelbert 2011-12-01

JSON Source