強火で進め

このブログではプログラム関連の記事を中心に書いてます。

AndroidManifest.xml のテンプレート

Unity で AndroidManifest.xml を使う時のテンプレートととしてメモ。

<?xml version="1.0" encoding="utf-8"?>
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.unity3d.player">
    <application
		android:theme="@style/UnityThemeSelector"
		android:icon="@drawable/app_icon"
        android:label="@string/app_name">
        <activity android:name="com.unity3d.player.UnityPlayerActivity"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
            <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
        </activity>
    </application>
</manifest>

※このテンプレートは Mac の場合 (Unityのインストールフォルダ)/PlaybackEngines/AndroidPlayer/Apk/AndroidManifest.xml に有ります。上記のものはその内容から必要ない部分を削除したものです。

AndroidManifest.xml の配置場所は Plugins/Android

新たにタグを追加する時の差し込み場所についてはこちらのページにてタグ名で検索。

アプリ マニフェスト | Android Developers
http://developer.android.com/intl/ja/guide/topics/manifest/manifest-intro.html