screenshot in android

前端 未结 1 1263
野趣味
野趣味 2020-12-19 20:50

The following is the code I am using to take a screen shot using GLSurfaceView. But I dont know why the onDraw() method in the GLSurfaceView.Renderer Class is not being call

1条回答
  •  佛祖请我去吃肉
    2020-12-19 21:28

    Although you create the surfaceview, you don't set it to be the current contentview

    setContentView(mGLView);
    

    Also, you are creating the screenshot every single frame, which is very inefficient and probably not what you'll want..

    0 讨论(0)
提交回复
热议问题