Android Question Lock screen orientation.

anallie0

Active Member
Licensed User
Longtime User
hi
my app uses position portrait fixed.

Code: Copy
#SupportedOrientations: portrait

at the touch of a button I see a youtube video.
is possible to lock the screen in landscape position and when I get out of youtube re-lock the screen in portrait position?
I tried with SetScreenOrientation but does not work.
 
the SetOrentiation doesn't lock the screen. If i rotate the phone , the view of video rotate.
 
Upvote 0
maybe it does not work because when I call the youtube link , my activity switches in pause and the controls are managed by youtube.
 
Upvote 0
Back
Top