Android Question [ SOLVED ] Rotate screen to the right

Sasuke Sama

Active Member
Licensed User
Hi
We can rotate the screen using the phone lib but it lockes the screen to the left
I have a video player app so i need to make the screen to rotate to both the left and right like youtube or mx player or many more android apps ( probably every app can do that as far as i see )
Thanx
 

Sasuke Sama

Active Member
Licensed User
You don't need to use the Phone library for this.

Set the video activity orientation to landscape: https://www.b4x.com/android/forum/t...osite-to-supportedorientations.97438/#content
The player has both portrait and landscape support and theres a button that switch between theme
I use the phone lib to rotate it to whatever the video is ( landscape or portrait ) and as far as i can see the code in the link will lock it in landscape only so its not good for my use
 
Top