Changes the current activity orientation. This method cannot be called from a service module.
Orientation: -1 for unspecified, 0 for landscape and 1 for portrait.
It's important to say, that you need this in a service ("Live Wallpaper" is a service). But, it's not possible to set the orientation on a service with a switch or the manifest.
You must draw your picture/background corresponding to portrait when landscape is detected...
Sorry, it's not a simple thing to do this on a service... ;-)