Android Question Web page orientation

AlpVir

Well-Known Member
Licensed User
Longtime User
One of my apps has set it to work in landscape mode. In fact, I inserted in "Region Project Attributes" "#SupportedOrientations: landscape".
However when I connect to a dynamic web page at the push of a button, it appears vertically.
B4X:
    Dim p As PhoneIntents
    StartActivity(p.OpenBrowser(.........))
I don't like it very much. Is it possible to remedy this ... inconsistency?
Thanks in advance
 

DonManfred

Expert
Licensed User
Longtime User
However when I connect to a dynamic web page at the push of a button, it appears vertically.
you are opening the device browser. It is not controlled by your "#SupportedOrientations: landscape" as this setting only is for your app, not any 3rd party apps. In this case the devices Webbrowser.
 
Upvote 0

JohnC

Expert
Licensed User
Longtime User
You could add a Webview to an activity in your app that will display the internet page, and then you could control the orientation of the activity/webview in your app.
 
Upvote 0
Top