{ "id": "98878", "key": "TIMOB-10348", "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": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2012-08-08T22:15:22.000+0000", "created": "2012-08-08T11:50:11.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" } ], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-16T20:43: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": "h4. \r\nUnable to take picture and save in Android 4 devices.\r\n\r\nh4.\r\nSteps to reproduce:\r\n1. Take a picture\r\n2. Click the Save button inside the camera app\r\n\r\n{code}\r\n success : function( event ) {\r\n\r\n var image;\r\n\r\n var resizedOptions = {\r\n width : 640,\r\n height : 480,\r\n format : ImageFactory.PNG\r\n };\r\n\r\n try {\r\n var newFile = Ti.Filesystem.createTempFile(Ti.Filesystem.applicationDataDirectory, 'temp.jpg');\r\n newFile.write(image);\r\n image = ImageFactory.imageAsResized(newFile.read(), resizedOptions);\r\n } catch( e ) {\r\n Ti.API.info(\"App.UI.Ticket.Actions.CameraField image saving failed \" + e + \" \" + e.error);\r\n image = false;\r\n }\r\n\r\n \r\n\r\n if (image && image.mimeType && (image.mimeType === \"image/png\" || image.mimeType === \"image/jpeg\")) {\r\n\r\n\r\n //SUCCESS\r\n \r\n } else {\r\n //FAILURE \r\n }\r\n\r\n }\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Error Saving Picture on Android 4", "creator": { "name": "ckao", "key": "ckao", "displayName": "Cindy Kao", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ckao", "key": "ckao", "displayName": "Cindy Kao", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti v.2.1.1 GA\r\nSamsung Galaxy Tablet Android 4\r\nASUS Transformer Tablet Android 4\r\nMotorola Xoom Tablet Android 4", "comment": { "comments": [ { "id": "213498", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This appears to be a code snippet and not the complete test case. Please provide a complete test case and make sure that Support team can reproduce it in house before moving it to TIMOB queue.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-08T22:15:22.000+0000", "updated": "2012-08-08T22:15:22.000+0000" }, { "id": "412936", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the information that was requested was never provided.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T20:43:36.000+0000", "updated": "2017-03-16T20:43:36.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }