{ "id": "62632", "key": "TIMOB-2000", "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": [ { "id": "11226", "name": "Release 1.5.0 M01", "archived": true, "released": true, "releaseDate": "2010-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:57:47.000+0000", "created": "2011-04-15T03:07:46.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect" ], "versions": [], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-04-17T01:57:47.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": "{html}
If you run this app.js:
\n\n/*global Ti, Titanium, alert, JSON */\nTitanium.UI.setBackgroundColor('#000');\nTi.API.info('Ti.UI.Android.SOFT_INPUT_ADJUST_PAN = ' + Ti.UI.Android.SOFT_INPUT_ADJUST_PAN);\nTi.API.info('Ti.Android.ACTION_ALL_APPS = ' + Ti.Android.ACTION_ALL_APPS);
\n
\nThe result should be:
\n\nI/TiAPI ( 1127): (kroll$1) [1,147] Ti.UI.Android.SOFT_INPUT_ADJUST_PAN = 32\nI/TiAPI ( 1127): (kroll$1) [0,169] Ti.Android.ACTION_ALL_APPS = android.intent.action.ALL_APPS
\n
\nBut the actual result is:
\n\nI/TiAPI ( 1127): (kroll$1) [1,147] Ti.UI.Android.SOFT_INPUT_ADJUST_PAN = 32\nI/TiAPI ( 1127): (kroll$1) [0,169] Ti.Android.ACTION_ALL_APPS = null
\n
\nThe second one fails because KrollObject.get() grabs the cached\nmodule named Android, which comes from Ti.UI.Android since it was\ncalled first.
(from [3f1d49ee52fb480288b9ef8ddedbed18b94a4f65])\n[#2000 state:fixed-in-qa] Caching of modules now\nuses their full qualified class names as keys to avoid collisions\nbetween Ti.Android and Ti.UI.Android \nhttp://github.com/appcelerator/titanium_mobile/commit/3f1d49ee52fb4...
Hey Bill, I am seeing :
\nI/TiAPI ( 299): (kroll$3) [99,29737]\nTi.UI.Android.SOFT_INPUT_ADJUST_PAN = 32
\nI/TiAPI ( 299): (kroll$3) [2,29739] Ti.Android.ACTION_ALL_APPS =\nundefined
in Titanium SDK version: 1.5.0d02c264
Adding Don's comment from the duplicate #2142:
\nTi.UI.Android and Ti.Android are not detected as separate\nnamespaces. If both modules are included in boot, and Ti.UI.Android\nis added last, calling Ti.Android.createActivity throws an\nexception because it's looking in the Ti.UI.Android module
(from [b42c84f0441aca59872f3c2bec07abb02afb2965])\n[#2000 state:fixed-in-qa] third-level modules\nshould not be included in Application.java (and thus not in\napp_modules collection in android.py). They are bound lazily at\nruntime. \nhttps://github.com/appcelerator/titanium_mobile/commit/b42c84f0441a...
(from [98da99d5801e426ff5cc63555b6a398ec662a5eb])\n[#2000 state:fixed-in-qa] add unit test \nhttps://github.com/appcelerator/titanium_mobile/commit/98da99d5801e...
Titanium SDK version: 1.5.0 (12/01/10 09:30 ac7cfd8), drillbit,\nAndroid 1.6/2.1