{ "id": "120243", "key": "TIMOB-15296", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "16092", "description": "2014 Sprint 08", "name": "2014 Sprint 08", "archived": true, "released": true, "releaseDate": "2014-04-24" }, { "id": "16093", "description": "2014 Sprint 08 SDK", "name": "2014 Sprint 08 SDK", "archived": true, "released": true, "releaseDate": "2014-04-24" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-04-17T23:57:45.000+0000", "created": "2013-09-20T11:15:59.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "module_window", "qe-closed-3.3.0", "qe-testadded", "supportTeam" ], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" } ], "issuelinks": [ { "id": "38877", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "132069", "key": "TIMOB-17198", "fields": { "summary": "Android: Closing Titanium app on Android 4.4.3 will show previous app", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "34887", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "110489", "key": "TIMOB-12925", "fields": { "summary": "Android: Support FLAG_SECURE window flag", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-07-08T21:55:06.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": "h2. Description\r\nCurrently Titanium doesn't support setting the flags on window. This is possible in native Android SDK when we add flags in the onCreate method of the window object.\r\n\r\nh4. Android Native Example\r\n{code}\r\ngetWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);\r\n\r\ngetWindow().addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);\r\n\r\ngetWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);\r\n\r\ngetWindow().addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);\r\n{code}\r\n\r\nThis is basically required to show the message screen over the lock-screen. When a message is send to the app the message window should be shown even if the phone's screen is locked. \r\n\r\nFor reference:\r\nhttp://developer.android.com/reference/android/view/WindowManager.LayoutParams.html", "attachment": [], "flagged": false, "summary": "Android: Support for window flags", "creator": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android ", "comment": { "comments": [ { "id": "286019", "author": { "name": "yomybaby", "key": "yomybaby", "displayName": "Jong Eun Lee", "active": true, "timeZone": "Asia/Tokyo" }, "body": "Yes!! This is basically required!!!!\r\nIs there any good new?", "updateAuthor": { "name": "yomybaby", "key": "yomybaby", "displayName": "Jong Eun Lee", "active": true, "timeZone": "Asia/Tokyo" }, "created": "2013-12-27T23:24:26.000+0000", "updated": "2013-12-27T23:24:26.000+0000" }, { "id": "300897", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending\r\nmaster - https://github.com/appcelerator/titanium_mobile/pull/5602", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-04-14T21:42:54.000+0000", "updated": "2014-04-14T21:42:54.000+0000" }, { "id": "300899", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Test Case\n{code}\nvar win = Ti.UI.createWindow({backgroundColor:'white'});\n\nvar b1 = Ti.UI.createButton({\n\ttitle:'Fullscreen property',\n\ttop:50\n});\n\nvar b2 = Ti.UI.createButton({\n\ttitle: 'Fullscreen flag',\n\tbottom:50\n});\n\n\nvar l = Ti.UI.createLabel({\n\ttext:'No exitOnClose specified. Press back button and app should automatically exit',\n\tleft:10,\n\tright:10,\n\tcolor:'black'\n});\n\nwin.add(l);\nwin.add(b1);\n\nwin.add(b2);\n\nwin.open();\n\nb1.addEventListener('click',function(){\n\tvar nwin = Ti.UI.createWindow({\n\t\tbackgroundColor:'white',\n\t\tfullscreen:true\n\t});\n\tvar l1 = Ti.UI.createLabel({\n\t\ttext:'I must be fullscreen',\n\t\tcolor: 'red'\n\t});\n\t\n\tnwin.add(l1);\n\t\n\tnwin.open();\n});\n\n\nb2.addEventListener('click',function(){\n\tvar nwin2 = Ti.UI.createWindow({\n\t\tbackgroundColor:'white',\n\t\twindowFlags:1024\n\t});\n\tvar l2 = Ti.UI.createLabel({\n\t\ttext:'I must be fullscreen',\n\t\tcolor: 'blue'\n\t});\n\t\n\tnwin2.add(l2);\n\t\n\tnwin2.open();\n});\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-04-14T21:53:13.000+0000", "updated": "2014-04-14T21:53:13.000+0000" }, { "id": "302369", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the issue with environment:\r\n\r\nAppc-Studio:3.3.0.201404211130\r\nsdk:3.3.0.v20140423155715\r\nacs:1.0.14\r\nalloy:1.4.0-dev\r\nnpm:1.3.2\r\ntitanium:3.3.0-dev\r\ntitanium-code-processor:1.1.1-beta1\r\nxCODE:5.1.1\r\nDevice:Iphone5(7.1),Nexus7(v4.4.2)\r\n\r\nWorking fine on android Window fullscreen flag.\r\nHence closing the issue", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-24T10:35:53.000+0000", "updated": "2014-04-24T10:35:53.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }