you do not have to use a surfaceview  you are not rendering anything  you are making your life x more complicated than needed just use egl directly ie  move all your code in onsurfacecreated out of there 