{ "id": "147073", "key": "TIMOB-19621", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-11-04T22:18:07.000+0000", "created": "2015-04-19T18:34:06.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "image" ], "versions": [ { "id": "16919", "description": "Critical updates", "name": "Release 4.1.1", "archived": true, "released": true, "releaseDate": "2015-07-15" } ], "issuelinks": [], "assignee": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2017-03-22T22:38:50.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": "{code:JavaScript}\r\nvar self = Ti.UI.createWindow({layout:'vertical', backgroundColor:'#0093b4'});\r\n\r\nvar aButton = Ti.UI.createButton({title : 'Screen Shot\\nAsync',\r\n\theight : Ti.UI.SIZE, width : Ti.UI.SIZE,});\r\n\r\naButton.addEventListener('click', function() {\r\n\tself.toImage(function(_blob) {\r\n\t\talert('toImage completed');});\r\n});\r\n\r\nself.add(aButton);\r\nself.open();\r\n{code}\r\nPressing the above button never fires the complete callback on Android.\r\n[iOS works perfect]\r\nSee: [http://developer.appcelerator.com/question/150289/i-cant-get-toimage-callback-to-fire] as well for Alloy.", "attachment": [], "flagged": false, "summary": "tiImage() complete callback is not fired on Android", "creator": { "name": "ybrown", "key": "ybrown", "displayName": "Yishai Brown", "active": true, "timeZone": "Asia/Jerusalem" }, "subtasks": [], "reporter": { "name": "ybrown", "key": "ybrown", "displayName": "Yishai Brown", "active": true, "timeZone": "Asia/Jerusalem" }, "environment": "Genymotion S3, Samsung S3-mini GT-I8200N, ", "closedSprints": [ { "id": 517, "state": "closed", "name": "2015 Sprint 22 SDK", "startDate": "2015-10-24T00:30:42.059Z", "endDate": "2015-11-07T01:30:00.000Z", "completeDate": "2015-11-09T02:37:29.441Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "366232", "author": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/7280\r\nUsed the same test case to verify the fix. ", "updateAuthor": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-10-08T09:44:49.000+0000", "updated": "2015-10-08T09:44:49.000+0000" }, { "id": "367369", "author": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~hpham] Updated PR with code changes. Please review\r\nhttps://github.com/appcelerator/titanium_mobile/pull/7280\r\n\r\nAligned the behaviour same as in iOS. ", "updateAuthor": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-10-21T04:28:54.000+0000", "updated": "2015-10-21T04:29:17.000+0000" }, { "id": "368954", "author": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~hpham] Please check my comments in PR https://github.com/appcelerator/titanium_mobile/pull/7280", "updateAuthor": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-11-04T07:25:34.000+0000", "updated": "2015-11-04T07:25:34.000+0000" }, { "id": "415146", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T22:38:50.000+0000", "updated": "2017-03-22T22:38:50.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }