Titanium Studio, build: 3.4.1.201410281727
Im using the following code to take a screenshot of my app which contains just a webview
Ti.Media.takeScreenshot(function(event) {
var emailDialog = Ti.UI.createEmailDialog();
if (!emailDialog.isSupported()) {
Ti.UI.createAlertDialog({
title : 'Error',
message : 'Email not available'
}).show();
return;
}
emailDialog.setSubject("Screenshot" );
emailDialog.setToRecipients([emailAddress]);
emailDialog.setMessageBody("test");
emailDialog.addAttachment(event.media);
emailDialog.open();
});
The code works fine on IOS and Android emulators and on many Android devices but on some Android devices (Lollipop 5.0.2) the image captured is only partial.
Usually just the top 50% of the screen gets captured and the bottom part of the image remains blank.
Any ideas?
/sanjay