{ "id": "62414", "key": "TIMOB-1782", "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": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11248", "name": "Sprint 2011-13", "archived": true, "released": true, "releaseDate": "2011-04-04" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-05-16T11:06:21.000+0000", "created": "2011-04-15T03:02:10.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "camera", "ios", "release-1.7.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-05-16T11:06:21.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

Hello,

\n

I think there is a bug with is really a pain for me...
\nTry this :

\n

app.js

\n
\nvar win1 = Ti.UI.createWindow({title: \"-\",  url: \"camera.js\"});\nvar btn = Ti.UI.createButton({title: 'Step 1'});\nbtn.addEventListener('click', function() { \n  win1.open(); \n});\nvar app = Ti.UI.createWindow({});\napp.add(btn);\napp.open();\n
\n

and camera.js

\n
\nvar btn2 = Ti.UI.createButton({   title: 'Show Camera' });\nbtn2.addEventListener('click', function() { \n  Ti.Media.showCamera( {
\n
\n\n\n
\n
\n
\nsuccess:function(event) { alert("OK"); },\nallowImageEditing:false\n
\n
\n\n\n
\n} );\n});\nTi.UI.currentWindow.add(btn2);\n
\n

Let's run on iPhone (iOS 4.0.1). Press on first button, then on\nthe \"Show Camera\" button. Take a photo, and press \"Use it\"...
\nYou'll be sent back to main window, and you can't go to the second\nwindow anymore.

{html}", "attachment": [], "flagged": false, "summary": "Ti.Media.showCamera bug", "creator": { "name": "joelbohrer", "key": "joelbohrer", "displayName": "Joel Bohrer", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "joelbohrer", "key": "joelbohrer", "displayName": "Joel Bohrer", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "126656", "author": { "name": "joelbohrer", "key": "joelbohrer", "displayName": "Joel Bohrer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I use Titanium 1.4...

{html}", "updateAuthor": { "name": "joelbohrer", "key": "joelbohrer", "displayName": "Joel Bohrer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:02:11.000+0000", "updated": "2011-04-15T03:02:11.000+0000" }, { "id": "126657", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Don't have a camera to test this with. Going to assign to Blain\nto handle, and tag tbs1.7.0 so it gets scrubbed ASAP.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:02:13.000+0000", "updated": "2011-04-15T03:02:13.000+0000" }, { "id": "126658", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I've validated that the bug as reported is not longer occurring\nin our current build.

{html}", "updateAuthor": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:02:14.000+0000", "updated": "2011-04-15T03:02:14.000+0000" }, { "id": "133443", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.7.0.879871b...(05/10/11 19:34) iPhone 3G (3.1.2)", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-11T15:09:42.000+0000", "updated": "2011-05-11T15:09:42.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }