android-project/app/src/main/AndroidManifest.xml
author Sam Lantinga <slouken@libsdl.org>
Wed, 06 Jun 2018 09:42:12 -0700
changeset 12010 6d44d9a589e1
parent 11668 7274ada44290
child 12364 351a67dbe9c6
permissions -rw-r--r--
Added Android hardware feature support to the default manifest
slouken@11647
     1
<?xml version="1.0" encoding="utf-8"?>
slouken@11647
     2
<!-- Replace com.test.game with the identifier of your game below, e.g.
slouken@11647
     3
     com.gamemaker.game
slouken@11647
     4
-->
slouken@11647
     5
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
slouken@11647
     6
    package="org.libsdl.app"
slouken@11647
     7
    android:versionCode="1"
slouken@11647
     8
    android:versionName="1.0"
slouken@11647
     9
    android:installLocation="auto">
slouken@11647
    10
slouken@11650
    11
    <!-- Android 4.0.1 -->
slouken@11650
    12
    <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="16" />
slouken@11647
    13
slouken@11647
    14
    <!-- OpenGL ES 2.0 -->
slouken@11647
    15
    <uses-feature android:glEsVersion="0x00020000" />
slouken@11647
    16
slouken@12010
    17
    <!-- Touchscreen support -->
slouken@12010
    18
    <uses-feature
slouken@12010
    19
        android:name="android.hardware.touchscreen"
slouken@12010
    20
        android:required="false" />
slouken@12010
    21
slouken@12010
    22
    <!-- Game controller support -->
slouken@12010
    23
    <uses-feature
slouken@12010
    24
        android:name="android.hardware.gamepad"
slouken@12010
    25
        android:required="false" />
slouken@12010
    26
slouken@12010
    27
    <!-- External mouse input events -->
slouken@12010
    28
    <uses-feature
slouken@12010
    29
        android:name="android.hardware.type.pc"
slouken@12010
    30
        android:required="false" />
slouken@12010
    31
slouken@11647
    32
    <!-- Allow writing to external storage -->
slouken@11647
    33
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
slouken@11647
    34
    <!-- Allow access to the vibrator -->
slouken@11647
    35
    <uses-permission android:name="android.permission.VIBRATE" />
slouken@11647
    36
slouken@11647
    37
    <!-- if you want to capture audio, uncomment this. -->
slouken@11647
    38
    <!-- <uses-permission android:name="android.permission.RECORD_AUDIO" /> -->
slouken@11647
    39
slouken@11647
    40
    <!-- Create a Java class extending SDLActivity and place it in a
slouken@11647
    41
         directory under app/src/main/java matching the package, e.g. app/src/main/java/com/gamemaker/game/MyGame.java
slouken@11647
    42
 
slouken@11647
    43
         then replace "SDLActivity" with the name of your class (e.g. "MyGame")
slouken@11647
    44
         in the XML below.
slouken@11647
    45
slouken@11647
    46
         An example Java class can be found in README-android.md
slouken@11647
    47
    -->
slouken@11647
    48
    <application android:label="@string/app_name"
slouken@11647
    49
        android:icon="@mipmap/ic_launcher"
slouken@11647
    50
        android:allowBackup="true"
slouken@11647
    51
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
slouken@11647
    52
        android:hardwareAccelerated="true" >
slouken@11667
    53
slouken@11667
    54
        <!-- Example of setting SDL hints from AndroidManifest.xml:
slouken@11667
    55
        <meta-data android:name="SDL_ENV.SDL_ACCELEROMETER_AS_JOYSTICK" android:value="0"/>
slouken@11667
    56
         -->
slouken@11667
    57
     
slouken@11647
    58
        <activity android:name="SDLActivity"
slouken@11647
    59
            android:label="@string/app_name"
slouken@11668
    60
            android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
slouken@11647
    61
            >
slouken@11647
    62
            <intent-filter>
slouken@11647
    63
                <action android:name="android.intent.action.MAIN" />
slouken@11647
    64
                <category android:name="android.intent.category.LAUNCHER" />
slouken@11647
    65
            </intent-filter>
slouken@11647
    66
            <!-- Drop file event -->
slouken@11647
    67
            <!--
slouken@11647
    68
            <intent-filter>
slouken@11647
    69
                <action android:name="android.intent.action.VIEW" />
slouken@11647
    70
                <category android:name="android.intent.category.DEFAULT" />
slouken@11647
    71
                <data android:mimeType="*/*" />
slouken@11647
    72
            </intent-filter>
slouken@11647
    73
            -->
slouken@11647
    74
        </activity>
slouken@11647
    75
    </application>
slouken@11647
    76
slouken@11647
    77
</manifest>