Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19621] tiImage() complete callback is not fired on Android

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2015-11-04T22:18:07.000+0000
Affected Version/sRelease 4.1.1
Fix Version/sn/a
ComponentsAndroid
Labelsimage
ReporterYishai Brown
AssigneeSrikanth Sombhatla
Created2015-04-19T18:34:06.000+0000
Updated2017-03-22T22:38:50.000+0000

Description

var self = Ti.UI.createWindow({layout:'vertical', backgroundColor:'#0093b4'});

var aButton = Ti.UI.createButton({title : 'Screen Shot\nAsync',
	height : Ti.UI.SIZE, width : Ti.UI.SIZE,});

aButton.addEventListener('click', function() {
	self.toImage(function(_blob) {
		alert('toImage completed');});
});

self.add(aButton);
self.open();
Pressing the above button never fires the complete callback on Android. [iOS works perfect] See: [http://developer.appcelerator.com/question/150289/i-cant-get-toimage-callback-to-fire] as well for Alloy.

Comments

  1. Srikanth Sombhatla 2015-10-08

    PR: https://github.com/appcelerator/titanium_mobile/pull/7280 Used the same test case to verify the fix.
  2. Srikanth Sombhatla 2015-10-21

    [~hpham] Updated PR with code changes. Please review https://github.com/appcelerator/titanium_mobile/pull/7280 Aligned the behaviour same as in iOS.
  3. Srikanth Sombhatla 2015-11-04

    [~hpham] Please check my comments in PR https://github.com/appcelerator/titanium_mobile/pull/7280
  4. Lee Morris 2017-03-22

    Closing ticket as fixed.

JSON Source