Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1782] Ti.Media.showCamera bug

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-05-16T11:06:21.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.7.0, Sprint 2011-13
ComponentsiOS
Labelscamera, ios, release-1.7.0
ReporterJoel Bohrer
AssigneeReggie Seagraves
Created2011-04-15T03:02:10.000+0000
Updated2011-05-16T11:06:21.000+0000

Description

Hello,

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

app.js

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

and camera.js

var btn2 = Ti.UI.createButton({   title: 'Show Camera' });
btn2.addEventListener('click', function() { 
  Ti.Media.showCamera( {

success:function(event) { alert("OK"); },
allowImageEditing:false



} ); }); Ti.UI.currentWindow.add(btn2);

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

Comments

  1. Joel Bohrer 2011-04-15

    I use Titanium 1.4...

  2. Stephen Tramer 2011-04-15

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

  3. Reggie Seagraves 2011-04-15

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

  4. Natalie Huynh 2011-05-11

    Tested with 1.7.0.879871b...(05/10/11 19:34) iPhone 3G (3.1.2)

JSON Source