Nexus 10 blank screenshot
I am trying to save a png file from a screenshot taken from c++ code on an Android device.
To save the screenshot I first attach my class to the
The png file is properly saved on a Samsung Galaxy S4, but on a Nexus 10 the same code produces a white png (or a black jpg if I change format).
What could be the cause of that?
I noticed that on the Galaxy S4 the compressedBitmap TArray has a resolution of 1024x576 instead of the native 1920x1080 whereas on the Nexus 10 the log shows a resolution of 921x576 (instead of the native res of 2560 x 1600).
If I take the screenshot including SlateUI elements, on the Samsung Galaxy S4 everything is saved correctly, whereas on Nexus10 I can only see Slate elements on a black backround.
The delegate callback is as follows:
Whereas the java code that handles the png creation is:
FlipBitmap is an AsyncTask that just creates the png file on another thread.
asked Oct 19 '15 at 03:43 PM in C++ Programming
I've discussed this with our Android developer and we've succeeded in getting your test project to work on a Nexus 5 here so it is likely there is an issue with the glReadPixels on the Nexus 10. Unfortunately, we do not have one of these for testing here. Also, in 4.10 the AndroidJNI.* are exposed publicly so it is easier to access the GameActivity and the new AndroidPlugin system may be a better way to do this since it allows extending the GameActivity.java and allows modification to the AndroidManifest and Proguard.
answered Nov 04 '15 at 12:03 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here