Skip to content

Instantly share code, notes, and snippets.

@prime31
Created October 13, 2014 19:27
Show Gist options
  • Save prime31/7ae29bc4c6a7f2d9181d to your computer and use it in GitHub Desktop.
Save prime31/7ae29bc4c6a7f2d9181d to your computer and use it in GitHub Desktop.
AndroidManifest.xml example for testing Twitter changes
<?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.prime31.UnityPlayerNativeActivity" android:screenOrientation="sensor"
android:label="@string/app_name"
android:launchMode="singleTask"
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
<meta-data android:name="android.app.lib_name" android:value="unity" />
<meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:host="connect" android:scheme="twitterplugin" />
</intent-filter>
</activity>
<activity android:name="com.unity3d.player.VideoPlayer"
android:label="@string/app_name"
android:screenOrientation="behind"
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
</activity>
<activity android:name="com.facebook.LoginActivity"></activity>
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="\ APP_ID"/>
<meta-data android:name="com.prime31.FacebookPlugin" android:value="UnityPlayerActivityProxy"/>
<meta-data android:name="com.prime31.TwitterPlugin" android:value="UnityPlayerActivityProxy"/>
</application>
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment