Manually rotate screen
-
28-10-2019 - |
Question
Hs there any chance to rotate the screen on Android programmatically for the whole system? Background is that I'm using a CMPC-device which features a non-Android-supported rotation sensor, and as a quick fix, I'm planning to write a small app that changes orientation for the entire system. Is there any function available for this purpose? I couldn't find anything on the documentation :(
Solution
You can find what you want here :
http://www.anddev.org/rotate_screen_from_code_change_screen_orientation-t2687.html
OTHER TIPS
App can't change orientation for entire system. I guess, you need to make custom build of Android for this purpose.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow