开发者

glSurfaceView and camera onResume problem

I have successfully implemented a mixed camera and glsurfaceview display. However, after pressing the home screen and returning to the app, the glsurfaceview is hidden behind the camera view (I belie开发者_运维知识库ve). If rerunning the app from a back key press, which uses finish(), both views display ok.

Any pointers on how to reinitialise on a onResume? I am currently calling finish() in the onPause method as a workaround but this has the side effect of exiting the app when the power button is pressed or the screen turns off after an amount of time.


Update, bringToFront() didn't really work after some extensive testing, it created other problems. However setZOrderOnTop(true) on the glSurfaceView did work.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜