{ "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,
\nI think there is a bug with is really a pain for me...
\nTry this :
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
\nand camera.js
\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} );\n});\nTi.UI.currentWindow.add(btn2);\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.
I use Titanium 1.4...
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.
I've validated that the bug as reported is not longer occurring\nin our current build.