Live Wallpaper disappears automatically
I developed android Live wallpaper using opengl.It starts fine,but it hangs to "loading live wallpaper" very often.I don't know why it is happening.
I have 10 images in drawable which is used for rendering.
My Logcat,
06-27 07:05:26.338: W/Adreno-EGLSUB(22430): <DequeueBuffer:591>: dequeue native buffer fail: No such device, buffer=0x0, handle=0x0
06-27 07:05:26.338: W/Adreno-ES20(22430): <gl2_surface_swap:43>: GL_OUT_OF_MEMORY
06-27 07:05:26.338: W/Adreno-EGL(22430): <qeglDrvAPI_eglSwapBuffers:3595>: EGL_BAD_SURFACE
06-27 07:05:26.378: W/Adreno-EGLSUB(22430): <DequeueBuffer:591>: dequeue native buffer fail: No such device, buffer=0x0, handle=0x0
06-27 07:05:26.378: W/Adreno-ES20(22430): <gl2_surface_swap:43>: GL_OUT_OF_MEMORY
06-27 07:05:26.378: W/Adreno-EGL(22430): <qeglDrvAPI_eglSwapBuffers:3595>: EGL_BAD_SURFACE
06-27 07:05:26.428: W/Adreno-EGLSUB(22430): <DequeueBuffer:591>: dequeue native buffer fail: No such device, buffer=0x0, handle=0x0
06-27 07:05:26.428: W/Adreno-ES20(22430): <gl2_surface_swap:43>: GL_OUT_OF_MEMORY
Actually My wallpaper loads properly,while it rendering for 30 -50 secs it automatically stops and shows Loading Live wallpaper message.But when when I click settings button it loads again.
Can anyone tell me why I am facing this issue.
This seem to be a quite elusive bug. Searching for the LogCat messages turns up many questions, but rarely any answers.
Switching of the hardware acceleration worked for some: here
As this is most likely not an option you could try to change around the initialization routine for OpenGL/Drawing. This seems to have helped some people: one, twoo, threee
Without more info available, you will have to try these out (especially the last one) and see what happens.
链接地址: http://www.djcxy.com/p/62084.html上一篇: 获取当前动态壁纸的图像
下一篇: 动态壁纸自动消失