Android Question Change Orientation Via Button

Douglas Farias

Expert
Licensed User
Longtime User
Hi how can i make to change the orientation portait - landscape via button?
i see many apps in the google play with config and in the config you can change orientation
how make this on b4a *-*?
 

antofer

Member
Licensed User
Longtime User
Phone add the library and declare the variable
but I can not assign ownership
As p Private Phone

p.SetScreenOrientation (0) 'or 1 Depending on the orientation you need.

setScreenOrientation not exist as property

I do wrong?
 
Upvote 0
Top