Android: Saving Screenshots in OpenGLES

1) Get your helper methods:

2) get a queue ready

3) add new filepath the the queue via e.g. events:

4) IMPORTANT! save the screen at the end of the opengl render process. (Note: If try to capture somewhere in the middle you might end up with a black screen or any other funny effects.)

Facebook comments:

comments

2 Comments

  1. iam getting black screen.when iam taking screenshot of video in my project.iam using exoplayer.will you suggest me the solution for solve it

Leave a Reply