Black screen on device

Tutorials concerning the OpenGL® ES cross-platform API for full-function 2D and 3D graphics on the Google-Android platform.

Black screen on device

Postby Hachaso » Fri Jul 24, 2009 11:22 am

Hi!

I have written a small OpenGL application.
Running it on the emulator works just fine. I can see my object.
But running the same application on device, causes a black screen. I can't see any errors.
Running the adb logcat, I see this message.

W/ActivityManager( 54): Launch timeout has expired, giving up wake lock!
W/ActivityManager( 54): Activity idle timeout for HistoryRecord{43b45ec8 {org.example.opengl/org.example.opengl.OpenGL}}

What does this mean?

What can I do to try to solve my problem.
Hachaso
Developer
Developer
 
Posts: 43
Joined: Mon Jan 26, 2009 11:44 am

Top

Postby Hachaso » Fri Jul 24, 2009 3:30 pm

I think I found the problem

commenting out this line in my code: gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
Fixed the problem

I'm not using textures at this moment. Maybe that's why it gets black on device.
Probably the emulator is running the Sofware version of Opengl.. but device is running the hardware accelerated one.
Hachaso
Developer
Developer
 
Posts: 43
Joined: Mon Jan 26, 2009 11:44 am

Top

Return to Android 2D/3D Graphics - OpenGL Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests