{ "id": "98205", "key": "ALOY-139", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2012-07-27T11:05:42.000+0000", "created": "2012-07-27T10:27:21.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-22T13:23:13.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": "12329", "name": "Runtime", "description": "Generic bucket for uncategorized runtime issues" } ], "description": "*Note* This issue did not occur on iOS\r\n\r\nSteps to reproduce:\r\n\r\n1. Create a default app in Ti Studio\r\n2. Enable it for alloy\r\n3. In the index.js file change the code to the following\r\n{code}\r\n\r\nvar win = Ti.UI.createWindow({\r\n\t\theight: 100,\r\n backgroundColor : '#000'\r\n\t});\r\n$.index.add(win);\r\n\r\n$.index.open();\r\n{code}\r\n4. In the file index.xml remove the line for the hello world label so there is only one xml tag for the \"container\" window\r\n5. Run the app\r\n\r\nActual result:\r\n\r\nThe app will fail to start and give an error\r\n*See attached log file*\r\n\r\nExpected result:\r\nThe app launches normally", "attachment": [ { "id": "30117", "filename": "alloylogfile.txt", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-27T10:27:21.000+0000", "size": 8758, "mimeType": "text/plain" } ], "flagged": false, "summary": "Android : Unable to add a window to the root index on Android", "creator": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested with Ti Studio build 2.1.1.201207171343\r\nTi Mobile SDK 2.1.1.v20120723111609\r\nOSX Lion 10.7.3\r\nGalaxy Nexus OS 4.0.4, Droid 1 OS 2.3.3", "comment": { "comments": [ { "id": "210231", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'll check into this ASAP", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-27T10:59:23.000+0000", "updated": "2012-07-27T10:59:23.000+0000" }, { "id": "210238", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It is a documented issue that top-level containers should not be added as children to other container views. Check the documentation for the {{add()}} function of {{Ti.UI.Window}}: http://docs.appcelerator.com/titanium/2.1/index.html#!/api/Titanium.UI.Window\r\n\r\nFrom the docs:\r\n{quote}\r\nThere are certain top-level containers that are not intended to be added as the children of other views. These top-level containers include Window, SplitWindow, and TabGroup. Other types of views must be added to a top-level container in order to be displayed on screen.\r\n{quote}", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-27T11:05:42.000+0000", "updated": "2012-07-27T11:06:19.000+0000" }, { "id": "210257", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Ahh good catch Tony, forgot about that. Sorry for the invalid bug", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-27T12:55:15.000+0000", "updated": "2012-07-27T12:55:15.000+0000" }, { "id": "210258", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing this as an invalid bug.", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-27T12:56:30.000+0000", "updated": "2012-07-27T12:56:30.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }