Page 1 of 2
disable screen rotation on certain page
Posted: Mon Jan 27, 2014 7:59 pm
by mikeman
How do I disable screen rotation function on certain page of my app?
I searched on stackoverflow and it suggested to add this line
Code: Select all
android:screenOrientation="landscape"
for each activity. But I am not so sure which activity from the Anroid Manifest.xml file?
disable screen rotation on certain page
Posted: Mon Jan 27, 2014 8:01 pm
by mikeman
By looking at my AndroidManifest.xml file, I am not able to identify which activity is the the page that I want to disable screen rotation.
disable screen rotation on certain page
Posted: Mon Jan 27, 2014 8:29 pm
by Kateryna Grynko
disable screen rotation on certain page
Posted: Tue Jan 28, 2014 2:24 am
by mikeman
I think I did not make my question clearly.
Let just say I have 4 pages on my app. Right now all my 4 pages are able to do screen rotation.
However, I do not want page # 4 to be rotated and it should be always at Portrait.
So how do I force page # always stay as Portrait?
Thanks
disable screen rotation on certain page
Posted: Tue Jan 28, 2014 11:09 am
by Maryna Brodina
Hello! Please let me know if this link helps http://stackoverflow.com/questions/10...
disable screen rotation on certain page
Posted: Tue Jan 28, 2014 3:57 pm
by mikeman
It is for the whole app screen orientation. I am looking for control screen orientation for only 1 page.
disable screen rotation on certain page
Posted: Tue Jan 28, 2014 4:43 pm
by Kateryna Grynko
Hi Mike,
You could change this on page Load event...
disable screen rotation on certain page
Posted: Tue Jan 28, 2014 9:53 pm
by mikeman
I am lost by your suggestion here. What you suggested was adding this line
codepreference name="orientation" value="portait"/code
to Load event, Run Javascript fot he page that I want to set orientation?
It seems impossible to do that. am I wrong?
disable screen rotation on certain page
Posted: Tue Jan 28, 2014 11:04 pm
by Igor
disable screen rotation on certain page
Posted: Tue Feb 25, 2014 11:46 pm
by marieall
Hi Katya,
I am also interested in locking screen rotation to portrait mode on one specific page of my app. Is it possible to do it through page load Event?