android-project/AndroidManifest.xml
author Ryan C. Gordon <icculus@icculus.org>
Fri, 12 Aug 2016 19:59:00 -0400
changeset 10266 c09f06c4e8c8
parent 10262 985f92b2f8e9
permissions -rw-r--r--
emscripten: send fake mouse events for touches, like other targets do. (This really should be handled at the higher level and not in the individual targets, but this fixes the immediate bug.)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4965
91d0085b7560 Added the Android project and lots of info to README.android
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     1
<?xml version="1.0" encoding="utf-8"?>
6838
abd1407af1f9 Fixed bug 1711 - Comment in "manifest" element within android-project/AndroidManifest.xml is the source of troubles
Sam Lantinga <slouken@libsdl.org>
parents: 6632
diff changeset
     2
<!-- Replace org.libsdl.app with the identifier of your game below, e.g.
abd1407af1f9 Fixed bug 1711 - Comment in "manifest" element within android-project/AndroidManifest.xml is the source of troubles
Sam Lantinga <slouken@libsdl.org>
parents: 6632
diff changeset
     3
     com.gamemaker.game
abd1407af1f9 Fixed bug 1711 - Comment in "manifest" element within android-project/AndroidManifest.xml is the source of troubles
Sam Lantinga <slouken@libsdl.org>
parents: 6632
diff changeset
     4
-->
4965
91d0085b7560 Added the Android project and lots of info to README.android
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     5
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
91d0085b7560 Added the Android project and lots of info to README.android
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     6
      package="org.libsdl.app"
91d0085b7560 Added the Android project and lots of info to README.android
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     7
      android:versionCode="1"
6631
47ab7ba21530 Updated the Android project template and README.android
Sam Lantinga <slouken@libsdl.org>
parents: 6392
diff changeset
     8
      android:versionName="1.0"
47ab7ba21530 Updated the Android project template and README.android
Sam Lantinga <slouken@libsdl.org>
parents: 6392
diff changeset
     9
      android:installLocation="auto">
47ab7ba21530 Updated the Android project template and README.android
Sam Lantinga <slouken@libsdl.org>
parents: 6392
diff changeset
    10
9558
4bab88dd387e Android: Fixed lint warning about order of elements in AndroidManifest.xml.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 8020
diff changeset
    11
    <!-- Android 2.3.3 -->
4bab88dd387e Android: Fixed lint warning about order of elements in AndroidManifest.xml.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 8020
diff changeset
    12
    <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="12" />
4bab88dd387e Android: Fixed lint warning about order of elements in AndroidManifest.xml.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 8020
diff changeset
    13
4bab88dd387e Android: Fixed lint warning about order of elements in AndroidManifest.xml.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 8020
diff changeset
    14
    <!-- OpenGL ES 2.0 -->
4bab88dd387e Android: Fixed lint warning about order of elements in AndroidManifest.xml.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 8020
diff changeset
    15
    <uses-feature android:glEsVersion="0x00020000" />
4bab88dd387e Android: Fixed lint warning about order of elements in AndroidManifest.xml.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 8020
diff changeset
    16
4bab88dd387e Android: Fixed lint warning about order of elements in AndroidManifest.xml.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 8020
diff changeset
    17
    <!-- Allow writing to external storage -->
4bab88dd387e Android: Fixed lint warning about order of elements in AndroidManifest.xml.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 8020
diff changeset
    18
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
4bab88dd387e Android: Fixed lint warning about order of elements in AndroidManifest.xml.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 8020
diff changeset
    19
10262
985f92b2f8e9 android: implement audio capture support.
Ryan C. Gordon <icculus@icculus.org>
parents: 10157
diff changeset
    20
    <!-- if you want to capture audio, uncomment this. -->
985f92b2f8e9 android: implement audio capture support.
Ryan C. Gordon <icculus@icculus.org>
parents: 10157
diff changeset
    21
    <!-- <uses-permission android:name="android.permission.RECORD_AUDIO" /> -->
985f92b2f8e9 android: implement audio capture support.
Ryan C. Gordon <icculus@icculus.org>
parents: 10157
diff changeset
    22
6631
47ab7ba21530 Updated the Android project template and README.android
Sam Lantinga <slouken@libsdl.org>
parents: 6392
diff changeset
    23
    <!-- Create a Java class extending SDLActivity and place it in a
47ab7ba21530 Updated the Android project template and README.android
Sam Lantinga <slouken@libsdl.org>
parents: 6392
diff changeset
    24
         directory under src matching the package, e.g.
47ab7ba21530 Updated the Android project template and README.android
Sam Lantinga <slouken@libsdl.org>
parents: 6392
diff changeset
    25
         	src/com/gamemaker/game/MyGame.java
47ab7ba21530 Updated the Android project template and README.android
Sam Lantinga <slouken@libsdl.org>
parents: 6392
diff changeset
    26
6632
147f85ac2e4b Simplified the manifest a little - we don't need a Java class in there. :)
Sam Lantinga <slouken@libsdl.org>
parents: 6631
diff changeset
    27
         then replace "SDLActivity" with the name of your class (e.g. "MyGame")
147f85ac2e4b Simplified the manifest a little - we don't need a Java class in there. :)
Sam Lantinga <slouken@libsdl.org>
parents: 6631
diff changeset
    28
         in the XML below.
6392
fa7eb111f994 Fixed bug 1564 - SDL has no function to open a screen keyboard on Android.
Sam Lantinga <slouken@libsdl.org>
parents: 4965
diff changeset
    29
10157
6ad89111cb4f Android: Updated name of README file.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 9708
diff changeset
    30
         An example Java class can be found in README-android.md
6631
47ab7ba21530 Updated the Android project template and README.android
Sam Lantinga <slouken@libsdl.org>
parents: 6392
diff changeset
    31
    -->
47ab7ba21530 Updated the Android project template and README.android
Sam Lantinga <slouken@libsdl.org>
parents: 6392
diff changeset
    32
    <application android:label="@string/app_name"
7044
30b7b0f09c51 Fixed bug 1779 - SDL's Android project template has old default icons from Android.
Sam Lantinga <slouken@libsdl.org>
parents: 6961
diff changeset
    33
                 android:icon="@drawable/ic_launcher"
7165
f7fc1f0c3a08 Fixed Android Lint warning in AndroidManifest.xml.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 7044
diff changeset
    34
                 android:allowBackup="true"
8020
1e390ba95c43 [Android] Fixes #2247, enable hardware acceleration by default.
Gabriel Jacobo <gabomdq@gmail.com>
parents: 7910
diff changeset
    35
                 android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
1e390ba95c43 [Android] Fixes #2247, enable hardware acceleration by default.
Gabriel Jacobo <gabomdq@gmail.com>
parents: 7910
diff changeset
    36
                 android:hardwareAccelerated="true" >
4965
91d0085b7560 Added the Android project and lots of info to README.android
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    37
        <activity android:name="SDLActivity"
7910
261addaa47d0 [Android] Fixes Bug 2041 - can't get SDL_QUIT event...
Gabriel Jacobo <gabomdq@gmail.com>
parents: 7907
diff changeset
    38
                  android:label="@string/app_name"
261addaa47d0 [Android] Fixes Bug 2041 - can't get SDL_QUIT event...
Gabriel Jacobo <gabomdq@gmail.com>
parents: 7907
diff changeset
    39
                  android:configChanges="keyboardHidden|orientation"
261addaa47d0 [Android] Fixes Bug 2041 - can't get SDL_QUIT event...
Gabriel Jacobo <gabomdq@gmail.com>
parents: 7907
diff changeset
    40
                  >
4965
91d0085b7560 Added the Android project and lots of info to README.android
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    41
            <intent-filter>
91d0085b7560 Added the Android project and lots of info to README.android
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    42
                <action android:name="android.intent.action.MAIN" />
91d0085b7560 Added the Android project and lots of info to README.android
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    43
                <category android:name="android.intent.category.LAUNCHER" />
91d0085b7560 Added the Android project and lots of info to README.android
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    44
            </intent-filter>
9708
306d5eb9cb93 Android: Added deactivated intent filter for testing drop file support.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 9558
diff changeset
    45
            <!-- Drop file event -->
306d5eb9cb93 Android: Added deactivated intent filter for testing drop file support.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 9558
diff changeset
    46
            <!--
306d5eb9cb93 Android: Added deactivated intent filter for testing drop file support.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 9558
diff changeset
    47
            <intent-filter>
306d5eb9cb93 Android: Added deactivated intent filter for testing drop file support.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 9558
diff changeset
    48
                <action android:name="android.intent.action.VIEW" />
306d5eb9cb93 Android: Added deactivated intent filter for testing drop file support.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 9558
diff changeset
    49
                <category android:name="android.intent.category.DEFAULT" />
306d5eb9cb93 Android: Added deactivated intent filter for testing drop file support.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 9558
diff changeset
    50
                <data android:mimeType="*/*" />
306d5eb9cb93 Android: Added deactivated intent filter for testing drop file support.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 9558
diff changeset
    51
            </intent-filter>
306d5eb9cb93 Android: Added deactivated intent filter for testing drop file support.
Philipp Wiesemann <philipp.wiesemann@arcor.de>
parents: 9558
diff changeset
    52
            -->
4965
91d0085b7560 Added the Android project and lots of info to README.android
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    53
        </activity>
91d0085b7560 Added the Android project and lots of info to README.android
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    54
    </application>
6631
47ab7ba21530 Updated the Android project template and README.android
Sam Lantinga <slouken@libsdl.org>
parents: 6392
diff changeset
    55
4965
91d0085b7560 Added the Android project and lots of info to README.android
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    56
</manifest>