embedding/android/AndroidManifest.xml.in
author David Dahl <ddahl@mozilla.com>
Tue, 16 Nov 2010 16:34:53 -0500
changeset 57601 aafeff43ea2582d6d6d2a8d55a4a0c2e81d57129
parent 57314 65b8060f0ea92337fd6195217341fdd59f289e73
child 58498 5a50b85ca5ef9163d53058c4a428d99c7f5fc203
permissions -rw-r--r--
Bug 587734: enable the lazy console API added in bug 568629, and hook it up to the Web Console, r=gavin, a=blocking

#filter substitution
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="org.mozilla.@MOZ_APP_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>

        <activity android:name="NotificationHandler"
                  android:label="@MOZ_APP_DISPLAYNAME@ Notification"
                  android:theme="@android:style/Theme.NoTitleBar">
            <intent-filter>
                <action android:name="org.mozilla.gecko.ACTION_ALERT_CLICK" />
                <action android:name="org.mozilla.gecko.ACTION_ALERT_CLEAR" />
            </intent-filter>
        </activity>

        <activity android:enabled="true" android:name="Restarter">
          <intent-filter>
            <action android:name="org.mozilla.gecko.restart@MOZ_APP_NAME@" 
		    android:process="@MOZ_APP_NAME@Restarter"/>
          </intent-filter>
        </activity>
#if MOZ_CRASHREPORTER
	<activity android:name="CrashReporter"
                  android:label="@MOZ_APP_DISPLAYNAME@ Crash Reporter"
		  android:icon="@drawable/crash_reporter"
		  android:process="org.mozilla.@MOZ_APP_NAME@.crashReporter" >
          <intent-filter>
            <action android:name="org.mozilla.gecko.reportCrash" />
          </intent-filter>
	</activity>
#endif
    </application>
</manifest>