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... ;-)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.