Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a Nexus One based AVD that naturally starts in landscape mode. When I use the specified key combo, Ctrl-F12, to place it in portrait mode, the phone goes portrait, but the screen is still 'landscape', i.e. I have to turn my head 90 left to read it properly.

How do I get the screen itself into portrait mode as well?
Posted

1 solution

Okay, so there might be a possibility that you have changed the configuration of the application in manifest.xml. You can enable this feature using android:screenOrientation in manifest.xml.

And yeah one thing as well, you need to have a layout-land folder within your project directory. This folder contains the all the layout files same the layout folder. But in layout folder you have the "Portrait" orientation of all the files and in layout-land, you can have the same files with the same names as layout folder but the orientation is "Landscape".

Hope this would help you. If it's not , paste your manifest.xml :)

-KR
 
Share this answer
 
Comments
Brady Kelly 2-Mar-14 5:27am    
This isn't my app, it's just an app supplied as part of the materials to test a project for a Coursera course. I haven't changed anything, and I think I can get away with plain landscape everything, despite their advice to go portrait. We are marked on the project by submitting logs of test results, so if those work, I won't worry further about portrait. It's just displaying a chooser, so I think I'll get away.
Krunal Rohit 2-Mar-14 5:30am    
Yeah.
So whosoever has created this app, the developer might have fixed the orientation of it.
Cheers.

-KR

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900