Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Ti.Media.takeScreenshot captures only partial screen on some Android devices

$
0
0

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


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>