{ "id": "62284", "key": "TIMOB-1652", "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": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:56:46.000+0000", "created": "2011-04-15T02:58:28.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "camera", "defect" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:56:46.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": "{html}

The success callback is supposed to have the cropRect and media\nproperties... The media property however is always returned as\nundefined, and the cropRect property only returns the default\nvalues. The image itself is successfully saved in the DCIM/Camera\ndirectory, but there is no way to access the image in that callback\nfunction.

\n

Tested on HTC Droid Eris 2.1 and HTC Evo 2.2. I'm not sure if\nthis is an issue for all Android phones or not.

{html}", "attachment": [], "flagged": false, "summary": "Android: showCamera()'s success callback does not work for HTC phones", "creator": { "name": "ryancoyner", "key": "ryancoyner", "displayName": "Ryan Coyner", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ryancoyner", "key": "ryancoyner", "displayName": "Ryan Coyner", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "126283", "author": { "name": "brionvibber", "key": "brionvibber", "displayName": "Brion Vibber", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I haven't encountered this with my Nexus 1; this is also an HTC\nphone but running a more stock 2.2 operating system. Could be some\nproblem related to the Sense tweaks... perhaps the photo file's\nsaving to a different place?

{html}", "updateAuthor": { "name": "brionvibber", "key": "brionvibber", "displayName": "Brion Vibber", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:58:29.000+0000", "updated": "2011-04-15T02:58:29.000+0000" }, { "id": "126284", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

HTC interpreted the Intent differently that Google.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:58:29.000+0000", "updated": "2011-04-15T02:58:29.000+0000" }, { "id": "126285", "author": { "name": "ryancoyner", "key": "ryancoyner", "displayName": "Ryan Coyner", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

All photos are saved into \"/sdcard/dcim/Camera\", as defined by\nPHOTO_DCIM_CAMERA in MediaModule.java. When saveToPhotoGallery is\nenabled, it just dumps the image in that directory. When it is\ndisabled (which it is by default), it creates a new set of\ndirectories in \"/sdcard/dcim/Camera\" which reflects the package\nname of your app (com/foo/bar).

\n

The images being saved there isn't so much of an issue, although\nit would be nice to be able to properly define where it can be\nsaved. The problem is that the success callback doesn't properly\ngrab the information about the image. Accessing event.media returns\nundefined.

{html}", "updateAuthor": { "name": "ryancoyner", "key": "ryancoyner", "displayName": "Ryan Coyner", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:58:29.000+0000", "updated": "2011-04-15T02:58:29.000+0000" }, { "id": "126286", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [beec48069f8749b354a46ac66edf757a0bbd657e])\n[#1652 state:fixed-in-qa] Added support for\ndetecting the HTC camera app and working with it's different\nrequirement for capturing images. If saveToPhotoGallery is true,\nthe image is left where the camera puts it. If false, then the file\nis moved to the applications photo directory and the content\nprovider updated with that information. This matches more closely\nwith what we do when using the Google camera app. \nhttp://github.com/appcelerator/titanium_mobile/commit/beec48069f874...

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:58:30.000+0000", "updated": "2011-04-15T02:58:30.000+0000" }, { "id": "126287", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

verified on an htc eris

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:58:30.000+0000", "updated": "2011-04-15T02:58:30.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }