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