Stop screen from rotating when phone is rotated

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Stop screen from rotating when phone is rotated

Postby zrgiu » Mon Nov 10, 2008 9:30 pm

I noticed that when the phone is rotated, the onCreate method is called again, and this causes me big problems .. From application logic to display issues.

So, what i would like is to find a way to force the screen to portrait mode, and no matter how the user rotates the phone, the app to remain still reported to the phone.

Thanks in advance
Junior Developer
Junior Developer
Posts: 10
Joined: Sat Nov 01, 2008 5:54 pm


Postby jasont » Tue Nov 11, 2008 5:39 am

Add the following to AndroidManfiest.xml for the Activities you want to run only in portrait mode and ignore screen orientation changes.

Posts: 28
Joined: Mon Sep 22, 2008 6:39 pm
Location: California


Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 5 guests