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