{ "id": "165103", "key": "TIMOB-24255", "fields": { "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-12-11T22:46:38.000+0000", "created": "2016-12-22T01:02:34.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-12-11T22:46:38.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": "h6.Reproduce.\r\n1. Run a simple app like following on different Android Device\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:\"white\"\r\n});\r\n\r\nvar button = Ti.UI.createButton({\r\n\ttitle: \"Send Email\",\r\n\ttop: 100,\r\n\tleft: 100\r\n});\r\n\r\nbutton.addEventListener(\"click\", function(){\r\n\tEmailDialog();\r\n});\r\nwin.add(button);\r\n\r\nwin.open();\r\n\r\nfunction EmailDialog() {\r\n\tvar emailDialog = Ti.UI.createEmailDialog();\r\n\temailDialog.subject = \"Hello from Titanium\";\r\n\temailDialog.toRecipients = ['foo@yahoo.com'];\r\n\temailDialog.messageBody = 'Appcelerator Titanium Rocks!';\r\n\tvar f = Ti.Filesystem.getFile('Answers.pdf');\r\n\temailDialog.addAttachment(f);\r\n\temailDialog.open();\r\n}\r\n{code}\r\n2. Click the button, Then choose Gmail to open EmailDialog\r\n3. Touch the device back button on the bottom.\r\n\r\nh6.Problem\r\n1. On Samsung S4 with Android 5.0.1, the device back button will close Gmail app, and go back to our original app. This is what customer expected.\r\n2. But On Samsung S5 snd S6 with Android Lollipop and Marshmallow, the device back button will close all app include our original app.", "attachment": [], "flagged": false, "summary": "Android: Different behaviours on device back button when open EmailDialog by Gmail app", "creator": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "subtasks": [], "reporter": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "environment": "SDK 6.0.0.GA\r\nAndroid 5.0.1, Lollipop and Marshmallow", "comment": { "comments": [ { "id": "403876", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~sliang] Maybe this could help?\r\n\r\n{code:js}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white',\r\n\texitOnClose: false\r\n});\r\n{code}", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-12-27T15:10:07.000+0000", "updated": "2016-12-27T15:10:54.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }