Android screenshot method returns a red bitmap


#1

Hello all,

I’ve been developing a markerless tracking based application in which the user can put some items on the floor, rotate and scale them etc. In that app, user can also take a screenshot of the view and share it.

Kudan allows us to call method ‘screenshot()’ which returns a bitmap of the AR view, but so far, I was only able to get a full red bitmap.

Application has been tested on Android 7.0 on Kudan 1.5.2.
Here is the image: http://i.cubeupload.com/Mwbz7Y.png

This is the code inside ARActivity which extends eu.kudan.kudan.ARActivity:
‘ARActivity.bm = getARView().screenshot();’