{ "id": "112295", "key": "TIMOB-13426", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-05-09T18:08:59.000+0000", "created": "2013-04-05T23:38:01.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2017-03-17T18:05:35.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": "h3. To reproduce:\r\n1. Copy this code into app.js\r\n2. Run the app\r\n3. Click the menu button. \r\n4. Nothing will happen\r\n{code}\r\nvar tabGroup = Ti.UI.createTabGroup();\r\nvar tab = Ti.UI.createTab();\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white',\r\n fullscreen: false,\r\n activity:{\r\n onCreateOptionsMenu: function(e){\r\n e.menu.add({title: 'here'});\r\n }\r\n }\r\n});\r\ntab.window = win;\r\ntabGroup.addTab(tab);\r\ntabGroup.open();\r\n{code}\r\nThis code, outside of the tabgroup,. works as expected:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white',\r\n fullscreen: false,\r\n activity:{\r\n onCreateOptionsMenu: function(e){\r\n e.menu.add({title: 'here'});\r\n }\r\n }\r\n});\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Menu does not work in tab window", "creator": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 3.1.0.v20130404113052", "comment": { "comments": [ { "id": "251075", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "This is as designed. Please read the section 'Menus on Tab Groups' in the documentation\r\nhttp://docs.appcelerator.com/titanium/latest/#!/api/Titanium.Android.Menu\r\n", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-05-09T18:08:59.000+0000", "updated": "2013-05-09T18:08:59.000+0000" }, { "id": "413523", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-17T18:05:35.000+0000", "updated": "2017-03-17T18:05:35.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }