Android Question ? GET ScreenOrientation

GMan

Well-Known Member
Licensed User
Longtime User
Is it possible to GET the actual ScreenOrientation ?

I searched the forum, but all questions belongs to SET it...

P.S.: i know that its working this way, but think maybe there is a better way:
Code: Copy
Dim Orientation As String
If Activity.Width > Activity.Height Then
    Orientation = "Landscape"
Else
    Orientation = "Portrait"
End If
 
I need a combination of the Accelerator +Y-Axis (away from me) and the ScreenOrientation (for users that dont have a Gyro build in).
So i used the written way and that works but thought, i can get the orientation by an own event.
 
Upvote 0
I need a combination of the Accelerator +Y-Axis (away from me) and the ScreenOrientation (for users that dont have a Gyro build in).
So i used the written way and that works but thought, i can get the orientation by an own event.
 
Upvote 0
Hoi Erel,

TOP - thats what i was looking for
 
Upvote 0
Back
Top