I'm really stuck on this issue and would appreciate any help very much.
I have searched and tried everything I could find on this topic, and still 
have not been able to lock my Live Wallpaper to Landscape. An Earth map 
forms the basis of my wallpaper, so you can see why it needs to be oriented 
to fill the longest axis of the screen side to side.  The wallpaper also 
requires a three image overlay with clipping, so I'm drawing directly to 
the Canvas using .drawBitmap, and setting the .clipPath. For some reason 
using .rotate on the Canvas is ignored. 

Due to the nature of the wallpaper I can only rotate after the image have 
been drawn. Being a live Wallpaper, I cannot use remapCoordinateSystem 
since it only allows one Activity for setting the wallpaper and 
android:screenOrientation="landscape" does not work for the same reason 
remapCoordinateSystem does not work. 

I can very easily determine the current orientation, and if the natural 
orientation for the device is portrait (typically phones) or landscape 
(typically tablets) by comparing the orientation with the screen dimensions 
(width > height & rotation = 0 or 180, it's a tablet) Now all I need to do 
is figure a way to lock the screen in the correct orientation.

Is there any other way to ensure the orientation of a Live Wallpaper will 
always be in Landscape mode?

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

Reply via email to