{ "id": "165283", "key": "TIMOB-24305", "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": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2017-01-12T21:44:54.000+0000", "created": "2017-01-12T17:53:34.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-24T18:34:57.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": "Window's android back event handler is faulty or event not functioning at all. Compare the following code with version 6* of the SDK with version 5.5.1.GA where it works.\r\n\r\nSample code:\r\nvar win1 = Titanium.UI.createWindow({\r\n\tbackgroundColor : \"white\",\r\n});\r\n\r\n\r\n\r\n// Add to the parent view.\r\nwin1.add(aWebView);\r\n\r\nwin1.addEventListener('androidback', function () {\r\n\talert(\"Don't go!\");\r\n});\r\n\r\nwin1.open();\r\n\r\nExpected behaviour: When back button clicked in Android, the application should remain open and the alert be shown. \r\n\r\nActual behaviour: Application closes and the alert is never displayed.", "attachment": [], "flagged": false, "summary": "Android: androidback window, tabgroup event does not fired in SDK 6.0.1.GA, 6.0.0.GA, This works fine for SDK 5.5.1.GA.", "creator": { "name": "itayavtalyon", "key": "itayavtalyon", "displayName": "Itay Avtalyon", "active": true, "timeZone": "Asia/Jerusalem" }, "subtasks": [], "reporter": { "name": "itayavtalyon", "key": "itayavtalyon", "displayName": "Itay Avtalyon", "active": true, "timeZone": "Asia/Jerusalem" }, "environment": "Android, project compiled using the 6.0.1.GA", "comment": { "comments": [ { "id": "404549", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I can verify the issue with the sample code below in SDK 6.0.1.GA, 6.0.0.GA, 5.5.1.GA with Android 6.0.1 device.\r\n{code}\r\nvar win1 = Titanium.UI.createWindow({\r\n backgroundColor : \"white\",\r\n});\r\n\r\nwin1.addEventListener('androidback', function() {\r\n alert(\"Don't go!\");\r\n});\r\n\r\nwin1.open();\r\n{code}\r\n\r\nandroidback event not fired in SDK 6.0.1.GA. This works fine for SDK 5.5.1.GA. \r\n\r\nNow, I have tried with \"windows:back\" instead of \"androidback' http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Window-event-androidback too. Same result. \r\n\r\nI even tried it for tabgroup, androidback event not fired in SDK 6.0.1.GA, 6.0.0.GA. This works fine for SDK 5.5.1.GA.\r\n{code}\r\nvar win1 = Ti.UI.createWindow({\r\n backgroundColor: 'blue',\r\n title: 'Blue'\r\n});\r\nwin1.add(Ti.UI.createLabel({text: 'I am a blue window.'}));\r\n\r\nvar win2 = Ti.UI.createWindow({\r\n backgroundColor: 'red',\r\n title: 'Red'\r\n});\r\nwin2.add(Ti.UI.createLabel({text: 'I am a red window.'}));\r\n\r\nvar tab1 = Ti.UI.createTab({\r\n window: win1,\r\n title: 'Blue'\r\n}),\r\ntab2 = Ti.UI.createTab({\r\n window: win2,\r\n title: 'Red'\r\n}),\r\ntabGroup = Ti.UI.createTabGroup({\r\n tabs: [tab1, tab2]\r\n});\r\ntabGroup.open();\r\n\r\ntabGroup.addEventListener('androidback', function() {\r\n alert(\"Don't go!\");\r\n});\r\n{code}\r\n\r\nTo sum up, androidback event not fired on both window and tabgroup in SDK 6.0.1.GA, 6.0.0.GA. This works fine for SDK 5.5.1.GA. \r\n\r\n\r\n", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-01-12T20:08:30.000+0000", "updated": "2017-01-12T20:09:07.000+0000" }, { "id": "404556", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Already fixed for 6.1.0 in TIMOB-24253", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-01-12T21:44:54.000+0000", "updated": "2017-01-12T21:44:54.000+0000" }, { "id": "415689", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate with reference to the linked issues.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T18:34:57.000+0000", "updated": "2017-03-24T18:34:57.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }