As others have stated at one time or another, I am running into the problem where my manifest file conflicts with Unity’s Orientation object in Android. I’ve researched and have seen all the posts available, but have yet to find a way to fix this. I know you must edit your manifest until Unity 4.3 fixes this. I’ve tried downgrading to 4.1.5 but it trashes my backup, as some things aren’t compatible.
I’ve tried many things, like removing |orientation| and Android:screenOrientation and only putting it in the Unity Native Player, as well as MainActivity sections. Then I get when I try rotating, my game crashes. How would I edit this Manifest below, properly to allow me to constantly be in Landscape Left, aka, sensorLandscape. The game is due out this week, and is the last missing piece. As it still rotates when you turn your phone. Below is the original, how it was merged using Neatplugs Facebook integration.
Thanks!
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="preferExternal" package="com.platoevolved.inappbilling" android:versionName="1.0" android:versionCode="1">
<supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" />
<application android:icon="@drawable/app_icon" android:label="@string/app_name" android:debuggable="false">
<!-- Unity3d Activities -->
<activity android:name="com.neatplug.u3d.plugins.common.NPUnityPlayerActivity" android:label="@string/app_name" android:configChanges="keyboard|keyboardHidden|orientation|screenSize" android:launchMode="singleTask">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.unity3d.player.VideoPlayer" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:screenOrientation="portrait">
</activity>
<service android:name="com.platoevolved.inappbilling.BillingService" />
<receiver android:name="com.platoevolved.inappbilling.BillingReceiver">
<intent-filter>
<action android:name="com.android.vending.billing.IN_APP_NOTIFY" />
<action android:name="com.android.vending.billing.RESPONSE_CODE" />
<action android:name="com.android.vending.billing.PURCHASE_STATE_CHANGED" />
</intent-filter>
</receiver>
<activity android:name="com.facebook.LoginActivity" android:screenOrientation="portrait" android:configChanges="keyboardHidden|orientation">
</activity>
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="\ 1422397297976133" />
<activity android:name="com.neatplug.u3d.plugins.facebook.FriendPickerActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar" android:label="@string/app_name" />
<meta-data android:name="com.google.android.gms.games.APP_ID" android:value="@string/app_id" />
<meta-data android:name="com.google.android.gms.appstate.APP_ID" android:value="@string/app_id" />
<activity android:label="@string/app_name" android:name="com.nerdiacs.nerdgpgplugin.DummyActivity" />
</application>
<!-- Required permission to use in-app billing. -->
<uses-permission android:name="com.android.vending.BILLING" />
<uses-feature android:glEsVersion="0x00020000" />
<uses-sdk android:minSdkVersion="6" android:targetSdkVersion="15" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</manifest>