{ "id": "65309", "key": "TIMOB-4079", "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": [ { "id": "11358", "description": "Mobile 1.8.0 M05", "name": "Sprint 2011-26", "archived": true, "released": true, "releaseDate": "2011-07-04" }, { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-11-05T13:48:36.000+0000", "created": "2011-05-13T12:21:33.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-11-05T13:48:36.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": "The following example will not fire setInterval. Works fine if you replace the TabGroup with a Window.\r\n\r\n{code:javascript}\r\n\tvar tabGroup = Titanium.UI.createTabGroup();\r\n var win1 = Titanium.UI.createWindow({\r\n title:'Tab 1',\r\n backgroundColor:'#fff' \r\n });\r\n var tab1 = Titanium.UI.createTab({\r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n });\r\n var label1 = Titanium.UI.createLabel({\r\n color:'#999',\r\n text:'I am Window 1',\r\n font:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n textAlign:'center',\r\n width:'auto'\r\n });\r\n win1.add(label1);\r\n\r\n var win2 = Titanium.UI.createWindow({\r\n title:'Tab 2',\r\n backgroundColor:'#fff'\r\n });\r\n var tab2 = Titanium.UI.createTab({\r\n icon:'KS_nav_ui.png',\r\n title:'Tab 2',\r\n window:win2\r\n });\r\n var label2 = Titanium.UI.createLabel({\r\n color:'#999',\r\n text:'I am Window 2',\r\n font:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n textAlign:'center',\r\n width:'auto'\r\n });\r\n win2.add(label2);\r\n\r\n tabGroup.addTab(tab1);\r\n tabGroup.addTab(tab2);\r\n \r\n setInterval(function() {\r\n\tTi.API.info('timer fired!');\r\n }, 2000);\r\n\r\n tabGroup.open();\r\n{code}\r\n\r\nh3. Tested On\r\nTiSDK 1.7.0 (05/12/11 16:26 844218f...), Android Simulator 2.3", "attachment": [], "flagged": false, "summary": "Android: setInterval won't fire in app.js with TabGroup", "creator": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 1.7.0 (05/12/11 16:26 844218f...), Android Simulator 2.3", "comment": { "comments": [ { "id": "133543", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "h3. Associated Helpdesk Ticket\nhttp://appc.me/c/APP-938779", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-13T12:22:42.000+0000", "updated": "2011-05-13T12:22:42.000+0000" }, { "id": "133912", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Inspection around this issue reveal several cases where timers aren't working as we would like. We need to review this with iOS in 1.7.1 and potentially stop managing timers for the app except when an app is exited.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-18T13:42:21.000+0000", "updated": "2011-05-18T13:42:21.000+0000" }, { "id": "157751", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Associated HD Support ticket:\r\n\r\nhttp://support.appcelerator.com/display/APP-689527", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-06-24T14:30:12.000+0000", "updated": "2011-06-24T14:30:12.000+0000" }, { "id": "158325", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "testing, merging, etc.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-30T09:16:54.000+0000", "updated": "2011-06-30T09:16:54.000+0000" }, { "id": "158851", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with Nexus S 2.3.4 and Nexus One 2.2.2 with 1.7.2.v20110630161836", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-06T17:47:53.000+0000", "updated": "2011-07-06T17:47:53.000+0000" }, { "id": "171614", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Standardizing summary and labels.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-05T13:48:21.000+0000", "updated": "2011-11-05T13:48:21.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }