Android open stack in different orientation
Posted: Mon Mar 23, 2015 5:23 pm
Hi
My android APP is used in landscape (which is the main stack), however when a certain substack opens, this particular stack is needs to be portrait.
Problem I am having here is the stack that needs to open in portrait actually opens in landscape even though I have the following code:
It is only when you tilt the device it then changes to portrait and does then does not allow to revert to landscape. Is there a way the stack can open in portrait without having to tilt the device first
Many thanks
Daniel
My android APP is used in landscape (which is the main stack), however when a certain substack opens, this particular stack is needs to be portrait.
Problem I am having here is the stack that needs to open in portrait actually opens in landscape even though I have the following code:
Code: Select all
-- Condition to check whether the environment is mobile
on preOpenStack
if the environment is "mobile" then
//set the fullscreenmode of this stack to "ExactFit"
--Portrait , Portrait Upside Down , Landscape Left, Landscape Right are the 4 Parameters to be passed in the function iphoneSetAllowedOrientations
put "portrait,portrait upside down" into theallowed
-- Function Call
mobileSetAllowedOrientations theallowed
end if
end preOpenStack
Many thanks
Daniel