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
 
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
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
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.

Code: Copy
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
Back
Top