• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Disable Auto-Rotation with Eclipse - Help please

Hi guys and girls.

Can anybody tell me if it is possible to code an app so that it does not rotate if/when the user rotates their device. I have built an app that is designed for portrait view only. When it is flips to landscape, it gets distorted. I have apps on my android that do not rotate when I try to rotate my device.

I am using Eclipse to make my app. I'm hoping it is something that I need to add to the manifest, but i am a novice.

Many thanks
 
Hi guys and girls.

Can anybody tell me if it is possible to code an app so that it does not rotate if/when the user rotates their device. I have built an app that is designed for portrait view only. When it is flips to landscape, it gets distorted. I have apps on my android that do not rotate when I try to rotate my device.

I am using Eclipse to make my app. I'm hoping it is something that I need to add to the manifest, but i am a novice.

Many thanks

Yes
put this in manifest
<activity android:name=".MyActivity" android:label="My Activity" android:screenOrientation="portrait">
Just fill in the right info
 
Back
Top Bottom