Android - capture exactly what the screen displays

2019-07-11 06:30发布

问题:

I am working on an application which rates the content of a view. I use a webview and connect to a server where either a livestream from a camera or a youtube video is being played. In another area the user is supposed to touch and rate what he sees. On Touchdown I would like to create an image of the current state of the (web)view which is connected to the server.

getDrawingCache(); does not do the job, as it returns only a black rectangle for the content. I think I need something which accesses the GPU-data, but I don't know how to do that.