Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5378] iOS: showCamera leaves a black background if saveToPhotoGallery or allowEditing are true

GitHub Issuen/a
TypeBug
PriorityHigh
StatusResolved
ResolutionCannot Reproduce
Resolution Date2019-08-14T17:06:16.000+0000
Affected Version/sRelease 1.8.0, Release 5.5.0
Fix Version/sSprint 2011-39, Release 1.8.0
ComponentsiOS
Labelsregression
ReporterJon Alter
AssigneeUnknown
Created2011-09-26T19:05:31.000+0000
Updated2019-12-02T23:06:27.000+0000

Description

If you use showCamera and have either allowEditing or saveToPhotoGallery set to true the screen will be black after taking a picture, after the camera disappears. Step 1: run the code below on device Step 2: click on the window Step 3: take a picture Step 4: notice the camera view disappears but the window is still all black Step 5: repeat the above steps with 1.7.2 and it will work fine (not leave a black background)
var win = Ti.UI.createWindow({
	backgroundColor : 'white'
});
win.open();
win.addEventListener('click', function(e) {
	Titanium.Media.showCamera({
		// allowEditing : true,
		saveToPhotoGallery : true,
		mediaTypes : [Ti.Media.MEDIA_TYPE_VIDEO, Ti.Media.MEDIA_TYPE_PHOTO],
		success : function(event) {
			alert('success');
		},
		cancel : function() {
			alert('cancel');
		},
		error : function() {
			alert('error');
		}
	});
});

Associated Helpdesk Ticket

http://appc.me/c/APP-821739

Comments

  1. Thomas Huelbert 2011-09-27

    adding the regression tag (as thats what this is)
  2. Blain Hamon 2011-09-27

    Adding that oddly enough, it doesn't happen on 4.2 devices (Verizon iPhone).
  3. Don Thorp 2011-09-29

    Added the Sprint back.
  4. Alan Vaghti 2011-10-14

    Fix verified in SDK 1.8.0.v20111013161411 with iPod 4.3.3
  5. Don Thorp 2011-11-05

    Standardizing summary and labels.

JSON Source