android-project/AndroidManifest.xml
author Gabriel Jacobo <gabomdq@gmail.com>
Wed, 06 Nov 2013 11:23:24 -0300
changeset 7910 261addaa47d0
parent 7907 24b4e98c6010
child 8020 1e390ba95c43
permissions -rw-r--r--
[Android] Fixes Bug 2041 - can't get SDL_QUIT event...

Thanks to Denis Bernard!

Also, changed the Android manifest so the app doesn't quit with orientation
changes, and made testgles.c exit properly on Android.
slouken@4965
     1
<?xml version="1.0" encoding="utf-8"?>
slouken@6838
     2
<!-- Replace org.libsdl.app with the identifier of your game below, e.g.
slouken@6838
     3
     com.gamemaker.game
slouken@6838
     4
-->
slouken@4965
     5
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
slouken@4965
     6
      package="org.libsdl.app"
slouken@4965
     7
      android:versionCode="1"
slouken@6631
     8
      android:versionName="1.0"
slouken@6631
     9
      android:installLocation="auto">
slouken@6392
    10
slouken@6631
    11
    <!-- Create a Java class extending SDLActivity and place it in a
slouken@6631
    12
         directory under src matching the package, e.g.
slouken@6631
    13
         	src/com/gamemaker/game/MyGame.java
slouken@6392
    14
slouken@6632
    15
         then replace "SDLActivity" with the name of your class (e.g. "MyGame")
slouken@6632
    16
         in the XML below.
slouken@6631
    17
philipp@7303
    18
         An example Java class can be found in README-android.txt
slouken@6631
    19
    -->
slouken@6631
    20
    <application android:label="@string/app_name"
slouken@7044
    21
                 android:icon="@drawable/ic_launcher"
philipp@7165
    22
                 android:allowBackup="true"
philipp@7165
    23
                 android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
slouken@4965
    24
        <activity android:name="SDLActivity"
gabomdq@7910
    25
                  android:label="@string/app_name"
gabomdq@7910
    26
                  android:configChanges="keyboardHidden|orientation"
gabomdq@7910
    27
                  >
slouken@4965
    28
            <intent-filter>
slouken@4965
    29
                <action android:name="android.intent.action.MAIN" />
slouken@4965
    30
                <category android:name="android.intent.category.LAUNCHER" />
slouken@4965
    31
            </intent-filter>
slouken@4965
    32
        </activity>
slouken@4965
    33
    </application>
slouken@6631
    34
gabomdq@6961
    35
    <!-- Android 2.3.3 -->
gabomdq@7907
    36
    <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="12" />
slouken@6631
    37
slouken@6631
    38
    <!-- OpenGL ES 2.0 -->
slouken@6631
    39
    <uses-feature android:glEsVersion="0x00020000" /> 
slouken@6631
    40
slouken@6631
    41
    <!-- Allow writing to external storage -->
slouken@6631
    42
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 
slouken@4965
    43
</manifest>