{ "id": "85290", "key": "AC-3212", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-02-21T14:42:21.000+0000", "created": "2012-01-22T16:27:40.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "updated": "2016-03-08T07:57:37.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Please support the android:back event for light windows as well as heavy windows. At this time, unless a window is heavy (i.e. contains a url parameter from which all its code is derived) the android:back even does not fire on that window.\r\n\r\nAs a result, in order to trap the android [hardware] back button, I need to employ a pretty extensive workaround, that includes the following steps:\r\n\r\nAttach an android:back event handler to the main (root) window.\r\nTi.App.fireEvent when the event handler is triggered.\r\nMaintain an application-wide stack of window names.\r\nPush and pop each window's name onto the stack as it is opened and closed.\r\nWrite an event handler in each window that checks to see if it's currently the top window on the stack, and if so, close the current window.\r\n\r\n", "attachment": [], "flagged": false, "summary": "Support android:back event for non-heavy windows", "creator": { "name": "markb@mantisbible.com", "key": "markb@mantisbible.com", "displayName": "Mark Burggraf", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "markb@mantisbible.com", "key": "markb@mantisbible.com", "displayName": "Mark Burggraf", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android", "comment": { "comments": [ { "id": "180142", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Hi Mark.\r\n\r\n\r\nTo make window heavyweight on Android, you don't have to use \"url\" property. \"url\" besides creating heavyweight window, creates new context. But, to make window heavyweight, you can define its \"modal\", \"fullscreen\" or \"navbarHidden\" property (and that would not create new context).\r\n\r\n\r\nSo, you can create window and include necessary code via \"Ti.include\" or \"require\" functions.\r\n\r\n\r\n\r\n\r\nCheers, Ivan.", "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2012-01-23T01:31:06.000+0000", "updated": "2012-01-23T01:31:06.000+0000" }, { "id": "183859", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "As Ivan suggested, there is a bunch of ways to get this functionality. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-02-21T14:42:21.000+0000", "updated": "2012-02-21T14:42:21.000+0000" }, { "id": "286012", "author": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "body": "Tested with Android Samsung Galaxy Nexus\r\n\r\nSDK 3.2.0.GA\r\nAndroid version: 4.1.1\r\n\r\nTest code is working, alert is showing, that means the window (lightweight) is getting the event.", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-27T21:10:18.000+0000", "updated": "2013-12-28T01:05:23.000+0000" }, { "id": "286044", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing this since the feature exists in our latest version of the SDK.", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-28T01:05:47.000+0000", "updated": "2013-12-28T01:05:47.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }