{ "id": "122866", "key": "TIMOB-15809", "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": null, "resolutiondate": null, "created": "2013-11-25T10:41:45.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "dev-invalidate", "qe-3.2.0" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:23.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "This is a regression issue as it works fine in SDK:3.1.3.GA\r\n\r\nSteps to reproduce:\r\n1.Click 'Open win 2'.\r\n2.Click on 'open win 3'.\r\n3.Continue this for few more number of windows.\r\n4.Now hit the device back button & start going back one window every time.\r\n\r\n\r\nActual: No black window appears when clicked on Next window\r\n\r\nExpected results:\r\n1.You should see a black window followed by next window with 'open win 3'.You should also see 'focus on win 2'.\r\n2.You should see a black window followed by next window with 'open win 4'.You should also see 'focus on win 3'.\r\n4.With every back button tap we should go one window back & we should get 'focus on win 'x''.where 'x' is the window you are currently on everytime..\r\n\r\n{code}\r\n\r\nvar _window = Titanium.UI.createWindow();\r\nif(!(Ti.Platform.osname == 'android')) { // effectively a list of supported platforms\r\n\t var label = tpl.ui.getSkipLabel();\r\n\t _window.add(label);\r\n\t return _window;\r\n\t }\r\n\t/**\r\n\t * Creates a simple black light weight window\r\n\t */\r\n\tfunction LightWeightWindow(){\r\n\t    var win = Ti.UI.createWindow({\r\n\t        backgroundColor: 'black',\r\n\t    });\r\n\t \r\n\t    return win;\r\n\t}\r\n\t \r\n\t/**\r\n\t * Creates a heavy weight window\r\n\t * @param {Number} num  the window number\r\n\t */\r\n\tfunction HeavyWeightWindow(num){\r\n\t    num ++;\r\n\t    // create the window\r\n\t    var win = Ti.UI.createWindow({\r\n\t        fullscreen: false, // make it heavy weight\r\n\t        backgroundColor: '#ccc',\r\n\t        title: 'win '+num\r\n\t    });\r\n\t \r\n\t    // let's do some processing\r\n\t    for(var i = 0; i < 200; i++) {\r\n\t        win.add(Ti.UI.createView({width:0,height:0,left:0,top:0}));\r\n\t    }\r\n\t \r\n\t    // open next window\r\n\t    var btn = Ti.UI.createButton({\r\n\t        title: 'open win ' + (num + 1)\r\n\t    });\r\n\t \r\n\t    btn.addEventListener('click', function(){\r\n\t        // open light weight window\r\n\t        var lightWeight = LightWeightWindow();\r\n\t        lightWeight.open();\r\n\t        // create the next heavy weight window\r\n\t        var next =  HeavyWeightWindow(num);\r\n\t        // open the heavy weight window\r\n\t        next.open();\r\n\t        // lastly, close the light weight window\r\n\t        lightWeight.close();\r\n\t    });\r\n\t \r\n\t    // on focus, show the toast notification\r\n\t    win.addEventListener('focus', function(){\r\n\t        Ti.UI.createNotification({\r\n\t            message:'focus on win '+ num,\r\n\t            duration: Ti.UI.NOTIFICATION_DURATION_SHORT\r\n\t        }).show();\r\n\t \r\n\t        Ti.API.info('focus on win '+ num)\r\n\t    });\r\n\t\twin.addEventListener('blur', function(){\r\n \r\n \tTi.API.info('blur on win '+ num)\r\n \t});\r\n\t \r\n\t    win.add(btn);\r\n\t \r\n\t    return win;\r\n\t}\r\n\t \r\n\t_window=HeavyWeightWindow(0);\r\n _window.open();\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Black window does not appear while clicking next window", "creator": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "OSX: 10.8.5\r\nAppcelerator Studio: 3.2.0.201311221207\r\nSDK: 3.2.0.v20131122172908\r\nacs:1.0.8\r\nalloy:1.3.0-alpha6\r\nnpm:1.3.2\r\ntitanium:3.2.0-alpha\r\ntitanium-code-processo:1.1.0-alpha\r\nDevice: Nexus 7 (v4.3)\r\n", "comment": { "comments": [ { "id": "281204", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "As of 3.2.0 sdk we do not have any lightweight windows.You can add this flag in your tiapp.xml to create lightweight windows:{code}true{code}\r\n\r\nRunning the above code with the flag in my tiapp.xml, I am seeing the expected results as described above.\r\n\r\nEnvironment:\r\nAppcel Studio : 3.2.0.201311221207\r\nTi SDK : 3.2.0.v20131122172908\r\nMac OSX : 10.8.5\r\nAlloy : 1.3.0\r\nCLI - 3.2.0-alpha\r\nNexus 5 - android 4.4\r\nSamsung Galaxy S4 running android 4.2.2", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-25T19:58:23.000+0000", "updated": "2013-11-25T20:00:51.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }