I have an AndroidManifest for admob which works fine, but now I want to use the OpenFeint plugin too. When I use both in my project for Android I obtain an APK which works fine, but the admob banner doesn’t appear and OpenFeint works.
I've been taking a look to solve the problem and I have found that each plugin overwrites the AndroidManifest.xml erasing any previous content. I think that this may be the cause of the problem.
I thought about merging the content of the two AndroidManifest.xml trying to respect their contents, but surely there are attributes that cannot be duplicated or mixed.
When I do this the generated APK cannot installed correctly.I would like to know if there’s a way to use both plugins in my project so that they work fine. I have not tested iphone pulgins but I expect a similar problem.
Can anyone help me and show me how to merge both files?
Thank you in advance.
Bellow you can see the contents of the both AndroidManifest.xml files:
-------------------------------AndroidManifest OPENFEINT-------------------------------------------------------------------------
<?xml version=\"1.0\" encoding=\"utf-8\"?><manifest
xmlns:android="http://schemas.android.com/apk/res/android\"
android:installLocation="preferExternal"
package="com.openfeint.api" android:versionName="1.4.1"
android:versionCode="6">
<supports-screens
android:smallScreens="true" android:normalScreens="true" android:anyDensity="true" />
<application android:icon="@drawable/app_icon" android:label="@string/app_name" android:debuggable="false">
<activity android:name="com.unity3d.player.UnityPlayerActivity" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation" android:screenOrientation="landscape">
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<activity android:name="com.unity3d.player.VideoPlayer" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation">
<activity android:name="com.openfeint.internal.ui.IntroFlow"
android:label="IntroFlow"
android:configChanges="orientation|keyboardHidden"
android:theme="@android:style/Theme.NoTitleBar"
android:screenOrientation="landscape"/><activity android:name="com.openfeint.api.ui.Dashboard"
android:label="Dashboard"
android:configChanges="orientation|keyboardHidden"
android:theme="@android:style/Theme.NoTitleBar"
android:screenOrientation="landscape"/><activity android:name="com.openfeint.internal.ui.Settings"
android:label="Settings"
android:configChanges="orientation|keyboardHidden"
android:theme="@android:style/Theme.NoTitleBar"
android:screenOrientation="landscape"/><activity android:name="com.openfeint.internal.ui.NativeBrowser"
android:label="NativeBrowser"
android:configChanges="orientation|keyboardHidden"
android:theme="@android:style/Theme.NoTitleBar"
android:screenOrientation="landscape"/>
<uses-feature android:glEsVersion="0x00010001" />
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="9" />
<uses-permission android:name="android.permission.INTERNET">
<uses-permission android:name="android.permission.GET_TASKS">
<uses-permission android:name="android.permission.READ_PHONE_STATE">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE">
-------------------------------AndroidManifest ADMOB-------------------------------------------------------------------------
<?xml version=\"1.0\" encoding=\"utf-8\"?><manifest
xmlns:android="http://schemas.android.com/apk/res/android\"
package="com.unity3d.player"
android:installLocation="preferExternal"
android:versionCode="1"
android:versionName="1.0">
<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="true">
<activity android:name="com.unity3d.player.UnityPlayerProxyActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation">
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<activity android:name="com.unity3d.player.UnityPlayerActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation">
<activity android:name="com.unity3d.player.UnityPlayerNativeActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation">
<meta-data android:name="android.app.lib_name" android:value="unity" />
<activity android:name="com.unity3d.player.VideoPlayer"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation">
<activity android:name="com.google.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>