C Cor Active Member Licensed User Longtime User Nov 15, 2010 #1 How to prevent screen orientation? Only show program in portrait or landscape grCor
Erel B4X founder Staff member Licensed User Longtime User Nov 15, 2010 #2 You can control the orientation by checking Project - Orientations Supported - ... Upvote 0
C Cor Active Member Licensed User Longtime User Nov 15, 2010 #3 Is this possible to do it by code? grCor Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Nov 15, 2010 #4 No. The orientation settings affect the application AndroidManifest.xml file. This file describes the application for the OS. One of the parameters is the orientation mode. Therefore it must be done during compilation. Upvote 0
No. The orientation settings affect the application AndroidManifest.xml file. This file describes the application for the OS. One of the parameters is the orientation mode. Therefore it must be done during compilation.
C Cor Active Member Licensed User Longtime User Nov 15, 2010 #5 But how to detect a orientation change and act on it grCor Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Nov 15, 2010 #6 But how to detect a orientation change and act on it Click to expand... This is a different question. Each time an orientation change occurs the activity is recreated. You can check the orientation in Activity_Create with Activity.Height / Width or with GetDeviceLayout. See this post for the recommended way for handling multiple layouts: http://www.b4x.com/forum/basic4andr...2-guess-my-number-visual-designer-events.html Upvote 0
But how to detect a orientation change and act on it Click to expand... This is a different question. Each time an orientation change occurs the activity is recreated. You can check the orientation in Activity_Create with Activity.Height / Width or with GetDeviceLayout. See this post for the recommended way for handling multiple layouts: http://www.b4x.com/forum/basic4andr...2-guess-my-number-visual-designer-events.html