How to read the current frame buffer in android?

Vic picture Vic · Nov 16, 2010 · Viewed 21.2k times · Source

Is there a method to read the frame buffer of the current screen? I searched some data about the frame buffer. Some one used the glReadPixels method, but the information was not enough. Does anyone know how to read the current frame buffer in detail?

Thanks for helping.

Answer

Reuben Scratton picture Reuben Scratton · Nov 16, 2010

Do you actually want the screen framebuffer? Or some OpenGL surface that your app has created?

If the former, see How to capture the android device screen content?

If the latter, you are on the right track with glReadPixels.