android-project/AndroidManifest.xml
author Sam Lantinga
Mon, 14 Aug 2017 13:37:14 -0700
changeset 11289 ca3c2c98f2e1
parent 11238 c728c661cec7
permissions -rw-r--r--
Fixed bug 2441 - SDL_DuplicateSurface


Rainer Deyke

I've written a small patch that adds a small SDL_DuplicateSurface function to SDL. I've written the function as part of a larger (as yet unfinished) patch, but I think this function is useful enough that it merits inclusion in SDL on its own.
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@6631
    10
philipp@9558
    11
    <!-- Android 2.3.3 -->
philipp@9558
    12
    <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="12" />
philipp@9558
    13
philipp@9558
    14
    <!-- OpenGL ES 2.0 -->
philipp@9558
    15
    <uses-feature android:glEsVersion="0x00020000" />
philipp@9558
    16
philipp@9558
    17
    <!-- Allow writing to external storage -->
philipp@9558
    18
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
slouken@11238
    19
    <!-- Allow access to the vibrator -->
slouken@11238
    20
    <uses-permission android:name="android.permission.VIBRATE" />
philipp@9558
    21
icculus@10280
    22
    <!-- if you want to capture audio, uncomment this. -->
icculus@10280
    23
    <!-- <uses-permission android:name="android.permission.RECORD_AUDIO" /> -->
icculus@10280
    24
slouken@6631
    25
    <!-- Create a Java class extending SDLActivity and place it in a
slouken@6631
    26
         directory under src matching the package, e.g.
slouken@6631
    27
         	src/com/gamemaker/game/MyGame.java
slouken@6631
    28
slouken@6632
    29
         then replace "SDLActivity" with the name of your class (e.g. "MyGame")
slouken@6632
    30
         in the XML below.
slouken@6392
    31
philipp@10157
    32
         An example Java class can be found in README-android.md
slouken@6631
    33
    -->
slouken@6631
    34
    <application android:label="@string/app_name"
slouken@7044
    35
                 android:icon="@drawable/ic_launcher"
philipp@7165
    36
                 android:allowBackup="true"
gabomdq@8020
    37
                 android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
gabomdq@8020
    38
                 android:hardwareAccelerated="true" >
slouken@4965
    39
        <activity android:name="SDLActivity"
gabomdq@7910
    40
                  android:label="@string/app_name"
icculus@11018
    41
                  android:configChanges="keyboardHidden|orientation|screenSize"
gabomdq@7910
    42
                  >
slouken@4965
    43
            <intent-filter>
slouken@4965
    44
                <action android:name="android.intent.action.MAIN" />
slouken@4965
    45
                <category android:name="android.intent.category.LAUNCHER" />
slouken@4965
    46
            </intent-filter>
philipp@9708
    47
            <!-- Drop file event -->
philipp@9708
    48
            <!--
philipp@9708
    49
            <intent-filter>
philipp@9708
    50
                <action android:name="android.intent.action.VIEW" />
philipp@9708
    51
                <category android:name="android.intent.category.DEFAULT" />
philipp@9708
    52
                <data android:mimeType="*/*" />
philipp@9708
    53
            </intent-filter>
philipp@9708
    54
            -->
slouken@4965
    55
        </activity>
slouken@4965
    56
    </application>
slouken@6631
    57
slouken@4965
    58
</manifest>