embedding/android/AndroidManifest.xml.in
author Makoto Kato <m_kato@ga2.so-net.ne.jp>
Mon, 20 Dec 2010 12:52:03 +0900
changeset 59648 6d22eaba6e9565e11492cfa70ffeaa6f1cd0b5ca
parent 59616 efc1b8bed8b9f3dcd57ba6ddaa05b2a160d3853f
child 59705 f47110e73a2163422c0c9e6770ff9add2aeaa386
permissions -rw-r--r--
Bug 620140 - Bug 616271 causes CanLoadPlugin returns failure when plugin path is non-ASCII. r=joshmoz a=blocking-beta9+

#filter substitution
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="@ANDROID_PACKAGE_NAME@"
      android:installLocation="auto"
      android:versionCode="1"
      android:versionName="@MOZ_APP_VERSION@"
      android:sharedUserId="org.mozilla.sharedID">
    <uses-sdk android:minSdkVersion="5"
              android:targetSdkVersion="5"/>

    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"/>

    <application android:label="@MOZ_APP_DISPLAYNAME@"
		 android:icon="@drawable/icon"
		 android:debuggable="true">
        <activity android:name="App"
                  android:label="@MOZ_APP_DISPLAYNAME@"
                  android:configChanges="keyboard|keyboardHidden|mcc|mnc"
                  android:windowSoftInputMode="stateUnspecified|adjustResize"
                  android:launchMode="singleTask"
                  android:theme="@android:style/Theme.Light.NoTitleBar">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>

            <!-- Default browser intents -->
            <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:scheme="http" />
                <data android:scheme="https" />
                <data android:scheme="about" />
                <data android:scheme="javascript" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.BROWSABLE" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:scheme="http" />
                <data android:scheme="https" />
                <data android:mimeType="text/html"/>
                <data android:mimeType="text/plain"/>
                <data android:mimeType="application/xhtml+xml"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.WEB_SEARCH" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="" />
                <data android:scheme="http" />
                <data android:scheme="https" />
            </intent-filter>

            <!-- For debugging -->
            <intent-filter>
                <action android:name="org.mozilla.gecko.DEBUG" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

        <receiver android:name="NotificationHandler">
            <intent-filter>
                <action android:name="org.mozilla.gecko.ACTION_ALERT_CLICK" />
                <action android:name="org.mozilla.gecko.ACTION_ALERT_CLEAR" />
            </intent-filter>
        </receiver>

        <activity android:name="Restarter"
                  android:theme="@android:style/Theme.Light.NoTitleBar">
          <intent-filter>
            <action android:name="org.mozilla.gecko.restart" 
		    android:process="@MOZ_APP_NAME@Restarter"/>
          </intent-filter>
        </activity>
#if MOZ_CRASHREPORTER
	<activity android:name="CrashReporter"
                  android:label="@string/crash_reporter_title"
		  android:icon="@drawable/crash_reporter" >
          <intent-filter>
            <action android:name="org.mozilla.gecko.reportCrash" />
          </intent-filter>
	</activity>
#endif
    </application>
</manifest>