{ "id": "65280", "key": "TIMOB-4061", "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": "2011-05-13T09:27:24.000+0000", "created": "2011-05-12T17:49:05.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "1.6.2", "android", "rplist" ], "versions": [ { "id": "11260", "description": "", "name": "Release 1.6.2", "archived": true, "released": true, "releaseDate": "2011-04-20" } ], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-05-13T09:27:24.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": "If the function passed into setInterval will not run the first time you run the app. If you exit the app and relaunch, the function will begin to execute.\n\nStep 1: run the code below\nStep 2: notice the lack of output in the log\nStep 3: close the app\nStep 4: relaunch the app\nStep 5: see the output in the log\n\n{code:javascript}\nvar win = Ti.UI.createWindow({\n\tbackgroundColor:'blue',\n\tfullscreen: true\n});\n\nwin.open();\n\nvar myfun = function() {\n Ti.API.info('timer fired!');\n};\n\nwin.addEventListener('open', function(e){\n\tsetInterval(myfun, 2000);\n});\n{code}", "attachment": [], "flagged": false, "summary": "Android: setInterval does not run on first app launch", "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.6.2, Android Simulator 2.3", "comment": { "comments": [ { "id": "133526", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-13T09:26:55.000+0000", "updated": "2011-05-13T09:26:55.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }