I am working on a program that connects the phone to a screen that does not rotate. I have found a way to inject touch and key events. The only problem I am having is with getting it to stay in landscape. I have found that I can set USER_ROTATION and ACCELEROMETER_ROTATION in the settings. However if a program requests to go into portrait mode it gets stuck and never rotates out of it. Assuming the user has root access, how can I globally force everything to go in landscape?
Share
I found the answer in the source code for this project. http://code.google.com/p/perapp It can be done by reading system logs and creating system level dialogs that are allowed to show on top of everything else. You can create them hidden and have them force the screen into landscape.