What’s the best (and easy) way to display any loading icon (rotating wheel, screen with the word “loading”… anything) at the start of an OpenGL app in Android?
My initialization functions (onSurfaceCreated and onSurfaceChanged) are quite slow, and I don’t want to have a black screen while they load. I tried to draw something with OpenGL in the meantime, but it’s impossible in those functions before everything is loaded.
What’s the best (and easy) way to display any loading icon (rotating wheel, screen
Share
Just don’t do lengthy operations in either
onSurfaceCreatedandonSurfaceChanged. Move costly operations into either a own thread (if not related to OpenGL), or do them on demand in the display functions preparation stage.