Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Stop screen from rotating when phone is rotated

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
zrgiu
Junior Developer
Junior Developer
 
Posts: 10
Joined: Sat Nov 01, 2008 5:54 pm

Top

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.

android:screenOrientation="portrait"
android:configChanges="orientation|keyboardHidden"
jasont
Developer
Developer
 
Posts: 28
Joined: Mon Sep 22, 2008 6:39 pm
Location: California

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 4 guests