mikeman
Posts: 0
Joined: Thu Jan 09, 2014 5:00 pm

disable screen rotation on certain page

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?

mikeman
Posts: 0
Joined: Thu Jan 09, 2014 5:00 pm

disable screen rotation on certain page

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

disable screen rotation on certain page

Hi Mike,

Take a look at here please: https://getsatisfaction.com/apperyio/...

mikeman
Posts: 0
Joined: Thu Jan 09, 2014 5:00 pm

disable screen rotation on certain page

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

disable screen rotation on certain page

Hello! Please let me know if this link helps http://stackoverflow.com/questions/10...

mikeman
Posts: 0
Joined: Thu Jan 09, 2014 5:00 pm

disable screen rotation on certain page

It is for the whole app screen orientation. I am looking for control screen orientation for only 1 page.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

disable screen rotation on certain page

Hi Mike,

You could change this on page Load event...

mikeman
Posts: 0
Joined: Thu Jan 09, 2014 5:00 pm

disable screen rotation on certain page

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?

marieall
Posts: 0
Joined: Thu Oct 03, 2013 4:10 pm

disable screen rotation on certain page

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?

Return to “Issues”