Thursday, August 4, 2011

[android-developers] Live Wallpaper Orientation Changes

Hi there,

I'm having trouble regarding my OpenGL LiveWallpapers (I'm testing it
with libgdx, AndEngine and my own systems). The problem is that when
the orientation changes the GL surface get's recreated and thus I have
to reupload all my textures, vbo's etc which takes some time (2
seconds). So this is really a quite annoying issue :D. I tried to
handle the orientation my self, which would be very easy adding just a
simple rotation and transforming height and width my self. The problem
is that the LW is a service and thus not able to prevent config
changes (or I've not found it on the net), android:configChanges and
android:screenOrientation seams to be unknown.

Is there a way I can tell the LW system that I will handle any
orientation changes by myself?

Cheers,
Moss

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment