I realize this is a older post but I have tried the Manifest approach to force screen orientation to sensorLandscape but my app will not "compile and run".
It does a Test Compile without any problem.
I am on B4A V2.71 with Core 2.71 and using Phone lib 2.10
When I add the following to the Manifest:
SetActivityAttribute(Main,android:screenOrientation, "sensorLandscape")
I get the following error when compiling:
Parsing code. 0.02
Compiling code. 0.13
Compiling layouts code. 0.00
Generating R File. Error
AndroidManifest.xml:17: error: Error: String types Not allowed (at 'screenOrientation' with value 'sensorLandscape').
I can however obtain the correct sensor landscape rotation by using the following command immediately after the activity.loadlayout.
phone1.SetScreenOrientation(6)
Attached is a small example with the Manifest entry that fails.
Because the phone1.SetScreenOrientation(6) approach works it is not a great issue, but reading post #3 it seems the Manifest approach allows a single place to define multiple activity orientation - which may be useful at some stage.
{Sorry - the layout is designed for 7" tablet so will not look too good on a smaller screen}