Android Question conditionally #SupportedOrientations:

Gianni Sassanelli

Active Member
Licensed User
Longtime User
hi,
as I wrote in the subject, Is it possible to make a setting of #SupportedOrientations based on configuration file or other?
thanks.


for example
If ConfigPortrait then
#SupportedOrientations = portrait
else
#SupportedOrientations =landscape
end if
thanks
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 1

Gianni Sassanelli

Active Member
Licensed User
Longtime User
It can be done with two different builds configurations (Ctrl + B):
B4X:
#If ConfigPortrait then
#SupportedOrientations = portrait
#else
#SupportedOrientations =landscape
#end if
thak's Erel.
i know this but in this mode i have 2 version of each release of app.
I need a flag based on configuration file or sqllite db field that lock or unlock the landscape mode
 
Upvote 0

agraham

Expert
Licensed User
Longtime User
I need a flag based on configuration file or sqllite db field that lock or unlock the landscape mode
It is not clear what you want to do. Is this at compile time or run time? The above suggestions are for compile time but your reference to a config or db file looks like you want to select at run time .
 
Upvote 0

Gianni Sassanelli

Active Member
Licensed User
Longtime User
It is not clear what you want to do. Is this at compile time or run time? The above suggestions are for compile time but your reference to a config or db file looks like you want to select at run time .
you are right agraham.
i need a solution to work at run time.
 
Upvote 0
Top