- Home /
Question by
davidjheberle · Sep 09, 2016 at 03:51 PM ·
androidandroid buildandroidpluginandroid-manifest
Is it possible to register android application in AndroidManifest.xml?
I need to register android application in AndroidManifest.xml but it looks like it's getting overwritten during the manifest merging process. How do I define <application android:name=".package.ClassName">
so it doesn't get overwritten?
Comment
Current Android$$anonymous$$anifest.xml:
<?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:theme="@android:style/Theme.NoTitleBar"
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:name=".package.ClassName"
android:icon="@drawable/app_icon"
android:label="@string/app_name"
android:debuggable="true">
<activity
android:name="com.unity3d.player.UnityPlayerNativeActivity"
android:label="@string/app_name"
android:hardwareAccelerated="true">
<intent-filter>
<action android:name="android.intent.action.$$anonymous$$AIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.LEANBAC$$anonymous$$_LAUNCHER" />
</intent-filter>
<meta-data android:name="unityplayer.UnityActivity" android:value="true" />
<meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" />
</activity>
</application>
</manifest>