change emulator orientation ??

ilan

Expert
Licensed User
Longtime User
hi there

i am using a macbook pro (windows 7 installed)
and i am trying to change the orientation to landscape on my macbook pro

the buttons crtl+f11 doesnot works

tried also fn+crtl+f11, and other many options
(it would be nice if there where a simpe button that does that, EREL)

does anyone have an idea how can i change the orientation on my phone using B4A bridge???

thanx
 

Theera

Well-Known Member
Licensed User
Longtime User
Hi ilan12041981,
The present, I always press button ctrl+11,it always changed for me. I think that you must set here as belows
 
Last edited:
Upvote 0

ilan

Expert
Licensed User
Longtime User
thanx theera for your reply

but thats doesnot solved the problem

if i am using the sdk emulator i can change the orientation by cklicking

fn + crtl + f11 in the emulator

but i usually work with the b4a bridge because its much faster
and there i cannot change the orientation from potrait to landscape

is there maybe a bug in the b4a bridge??

thanx
 
Upvote 0

Mark Read

Well-Known Member
Licensed User
Longtime User
Don't forget about the Phone library. Its also good for changing orientation between activities.

SetScreenOrientation (Orientation As Int)
Changes the current activity orientation. This method cannot be called from a service module.
Orientation - -1 for unspecified, 0 for landscape and 1 for portrait.

B4X:
Dim p as phone

Sub Activity_Create(FirstTime As Boolean)
'somewhere in your code for example
p.SetScreenOrientation (0)    'Switch to landscape mode
End Sub
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…