Android - detect OpenGLRenderer from memory

Is there any way to detect that OpenGLRenderer has run out of memory? I set the large image as possible for the ImageView background, and on a device with a FullHD display, sometimes the ImageView stays empty and I get it in logcat

D/OpenGLRenderer﹕ GL error from OpenGLRenderer: 0x505 E/OpenGLRenderer﹕ Out of memory! 

I would like this to happen and set a smaller image as the background.
Thanks

+5
source share

All Articles