{ "id": "121420", "key": "TIMOB-15554", "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": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2017-10-31T07:13:38.000+0000", "created": "2013-10-21T08:22:57.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [], "assignee": { "name": "mchen", "key": "mchen", "displayName": "Maggie Chen", "active": true, "timeZone": "Asia/Singapore" }, "updated": "2017-10-31T07:13: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": "From SDK 3.1.2 onwards, window \"create\" and \"start\" not fired when app is launched. \r\n\r\nBelow is an example launching and closing the app 3 times using SDK 3.1.1 and SDK 3.1.2/3.1.3\r\n\r\napp.js\r\nvar win1 = Titanium.UI.createWindow({ \r\n\t\r\n title:'Tab 1',\r\n backgroundColor:'#fff',\r\n navBarHidden: true,\r\n\texitOnClose: true,\r\n});\r\n\r\n\r\nwin1.addEventListener(\"open\", function(e){\r\n\tTi.API.debug(\"open\")\r\n\tvar activity = win1.activity\r\n\tactivity.addEventListener(\"start\", function(){Ti.API.debug(\"start\")})\r\n\tactivity.addEventListener(\"stop\", function(){Ti.API.debug(\"stop\")})\r\n\tactivity.addEventListener(\"resume\", function(){Ti.API.debug(\"resume\")})\r\n\tactivity.addEventListener(\"pause\", function(){Ti.API.debug(\"pause\")})\r\n\tactivity.addEventListener(\"create\", function(){Ti.API.debug(\"create\")})\r\n})\r\n\r\nwin1.addEventListener(\"close\", function(e){\r\n\tTi.API.debug(\"close\")\r\n})\r\n\r\n<= SDK 3.1.1\r\n\r\n10-21 16:19:15.059: D/TiAPI(1668): open\r\n10-21 16:19:15.069: D/TiAPI(1668): create\r\n10-21 16:19:15.069: D/TiAPI(1668): start\r\n10-21 16:19:15.069: D/TiAPI(1668): resume\r\n10-21 16:19:17.949: D/TiAPI(1668): pause\r\n10-21 16:19:19.919: D/TiAPI(1668): stop\r\n10-21 16:19:20.889: D/TiAPI(1668): close\r\n10-21 16:19:23.139: D/TiAPI(1668): open\r\n10-21 16:19:23.149: D/TiAPI(1668): create\r\n10-21 16:19:23.149: D/TiAPI(1668): start\r\n10-21 16:19:23.149: D/TiAPI(1668): resume\r\n10-21 16:19:25.009: D/TiAPI(1668): pause\r\n10-21 16:19:27.009: D/TiAPI(1668): stop\r\n10-21 16:19:28.529: D/TiAPI(1668): close\r\n10-21 16:19:30.349: D/TiAPI(1668): open\r\n10-21 16:19:30.349: D/TiAPI(1668): create\r\n10-21 16:19:30.359: D/TiAPI(1668): start\r\n10-21 16:19:30.359: D/TiAPI(1668): resume\r\n10-21 16:19:31.729: D/TiAPI(1668): pause\r\n10-21 16:19:33.679: D/TiAPI(1668): stop\r\n10-21 16:19:34.639: D/TiAPI(1668): close\r\n\r\nSDK 3.1.2 onwards\r\n\r\n10-21 16:22:09.479: D/TiAPI(2219): open\r\n10-21 16:22:16.479: D/TiAPI(2219): pause\r\n10-21 16:22:17.289: D/TiAPI(2219): stop\r\n10-21 16:22:17.559: D/TiAPI(2219): close\r\n10-21 16:22:19.699: D/TiAPI(2219): open\r\n10-21 16:22:21.899: D/TiAPI(2219): pause\r\n10-21 16:22:22.859: D/TiAPI(2219): stop\r\n10-21 16:22:22.859: D/TiAPI(2219): close\r\n10-21 16:22:24.749: D/TiAPI(2219): open\r\n10-21 16:22:26.069: D/TiAPI(2219): pause\r\n10-21 16:22:27.049: D/TiAPI(2219): stop\r\n10-21 16:22:27.059: D/TiAPI(2219): close\r\n", "attachment": [], "flagged": false, "summary": "Android: window activity event not fired", "creator": { "name": "sschua", "key": "sschua", "displayName": "chua swee siong", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sschua", "key": "sschua", "displayName": "chua swee siong", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium studio 3.1.1.201306112235\r\nAndroid version 2.3.6\r\nMAC OS X 10.8.5\r\nV8 runtime", "comment": { "comments": [ { "id": "429890", "author": { "name": "mchen", "key": "mchen", "displayName": "Maggie Chen", "active": true, "timeZone": "Asia/Singapore" }, "updateAuthor": { "name": "mchen", "key": "mchen", "displayName": "Maggie Chen", "active": true, "timeZone": "Asia/Singapore" }, "created": "2017-10-31T07:12:58.000+0000", "updated": "2017-10-31T07:12:58.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }