Slick Forums

Discuss the Slick 2D Library
It is currently Fri May 24, 2013 2:57 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: locking rotation AGAIN
PostPosted: Sun Jul 24, 2011 10:49 pm 
Offline
Oldbie
User avatar

Joined: Thu Jan 13, 2011 4:42 pm
Posts: 349
Okay, I know it can be done because the kitipong demo DOES this. HOW DO YOU KEEP THE SCREEN FROM RE-ORIENTING? PLEASE?!?!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 28, 2011 3:51 am 
Offline

Joined: Sun Jul 24, 2011 3:52 pm
Posts: 19
In your android manifest file, try adding:
android:screenOrientation="landscape">
under the activity. For example, mine looks like:
Quote:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.mangelok"
android:versionCode="1"
android:versionName="1.0">
<application android:label="@string/app_name" android:icon="@drawable/icon">
<activity android:name="GameActivity"
android:label="@string/app_name"
android:screenOrientation="landscape">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 28, 2011 5:29 pm 
Offline
Oldbie
User avatar

Joined: Thu Jan 13, 2011 4:42 pm
Posts: 349
Thank you, It worked! all this time, I had been trying to find a line to add to my source to lock rotation, I should've thought to look at the manifest.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group