Search code examples
androidopengl-eslive-wallpaper

android: GLWallpaperService causing green screen


I am trying to create a live wallpaper using opengl (<2.0).

I imported and tried to run Robert Green's GLWallpaperService and Example here (using Eclipse SDK).

My phone is a Huwei Ascend Android 2.1. I already know it can run other opengl LWPs.

When I run the package, it just produces a solid green screen, and no shapes or anything.

Ive researched it alot and still cant figure out why this is happening.

I read a few times that the namespaces have to be changed to my package. But still no luck...

I tried linking his GLWallpaperService JAR library to my package as per instructed. Nope.

Any guidance would be much appreciated.


Solution

  • try gl.glScale() in your Renderer Code. I also got the same problem and i figured out that my GLView was so much zoomed that i cant see anything. try to reduce scale. My program wo