[TIMOB-11887] Android: Media - Application crashes on Motorola RAZR i
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2013-04-02T01:22:49.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | n/a |
Components | Android |
Labels | qe-and100112, triage |
Reporter | Tamila Smolich |
Assignee | Ingo Muschenetz |
Created | 2012-11-28T23:30:12.000+0000 |
Updated | 2017-03-20T22:42:35.000+0000 |
Description
Description:
App crashes after attempt to use/save a taken picture on Motorola RAZR i (Intel inside). Crash log is attached.
Tested on a device with the same Android version (Samsung Galaxy SIII 4.0.4) and on Nexus 10 (4.2) - the app does not crash.
This is not a regression, the same behavior occurs on 2.1.4 as well.
Steps:
1. Run the following code on Motorola RAZR i:
var win1 = Ti.UI.createWindow(
{
title: "window 1"
});
var button1 = Titanium.UI.createButton(
{
color: '#999',
title: 'Launch Modal',
width: '200dp',
height: '60dp'
});
win1.add(button1);
button1.addEventListener("click", function()
{
modal = Ti.UI.createWindow(
{
modal: true,
title: "modal"
});
var cameraButton = Ti.UI.createButton(
{
title: "camera",
top: "50dp",
width: "150dp",
height: "60dp"
});
modal.add(cameraButton);
imageViewResize = Ti.UI.createImageView(
{
top: "200dp",
height: "200dp",
width: "200dp"
});
modal.add(imageViewResize);
cameraButton.addEventListener("click", function()
{
Titanium.Media.showCamera(
{
success: function(event)
{
imageViewResize.image = event.media;
},
error: function()
{
},
cancel: function()
{
},
saveToPhotoGallery: true,
allowEditing: true,
mediaTypes: [Ti.Media.MEDIA_TYPE_PHOTO],
showControls: true
});
});
modal.open();
});
win1.open();
2. Click "Launch Model" then click "Camera" button
3. Take a picture and press "use/save" button
Actual result:
The app crashes
Expected:
Image should appear on the screen and app should not crash
Attachments
File | Date | Size |
---|---|---|
log.txt | 2012-11-28T23:30:12.000+0000 | 6029 |
device specific
Please watch TIMOB-12848. Let us know if you still have the issue after we solve 12848.
Closing ticket as duplicate.