[TIMOB-1782] Ti.Media.showCamera bug
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-05-16T11:06:21.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.7.0, Sprint 2011-13 |
Components | iOS |
Labels | camera, ios, release-1.7.0 |
Reporter | Joel Bohrer |
Assignee | Reggie Seagraves |
Created | 2011-04-15T03:02:10.000+0000 |
Updated | 2011-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
- Joel Bohrer 2011-04-15
I use Titanium 1.4...
- 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.
- Reggie Seagraves 2011-04-15
I've validated that the bug as reported is not longer occurring in our current build.
- Natalie Huynh 2011-05-11 Tested with 1.7.0.879871b...(05/10/11 19:34) iPhone 3G (3.1.2)