AndroidManifest.xml (3471B)
1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Replace com.test.game 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 <!-- OpenGL ES 2.0 --> 12 <uses-feature android:glEsVersion="0x00020000" /> 13 14 <!-- Touchscreen support --> 15 <uses-feature 16 android:name="android.hardware.touchscreen" 17 android:required="false" /> 18 19 <!-- Game controller support --> 20 <uses-feature 21 android:name="android.hardware.bluetooth" 22 android:required="false" /> 23 <uses-feature 24 android:name="android.hardware.gamepad" 25 android:required="false" /> 26 <uses-feature 27 android:name="android.hardware.usb.host" 28 android:required="false" /> 29 30 <!-- External mouse input events --> 31 <uses-feature 32 android:name="android.hardware.type.pc" 33 android:required="false" /> 34 35 <!-- Audio recording support --> 36 <!-- if you want to capture audio, uncomment this. --> 37 <!-- <uses-feature 38 android:name="android.hardware.microphone" 39 android:required="false" /> --> 40 41 <!-- Allow writing to external storage --> 42 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 43 <!-- Allow access to Bluetooth devices --> 44 <uses-permission android:name="android.permission.BLUETOOTH" /> 45 <!-- Allow access to the vibrator --> 46 <uses-permission android:name="android.permission.VIBRATE" /> 47 48 <!-- if you want to capture audio, uncomment this. --> 49 <!-- <uses-permission android:name="android.permission.RECORD_AUDIO" /> --> 50 51 <!-- Create a Java class extending SDLActivity and place it in a 52 directory under app/src/main/java matching the package, e.g. app/src/main/java/com/gamemaker/game/MyGame.java 53 54 then replace "SDLActivity" with the name of your class (e.g. "MyGame") 55 in the XML below. 56 57 An example Java class can be found in README-android.md 58 --> 59 <application android:label="@string/app_name" 60 android:icon="@mipmap/ic_launcher" 61 android:allowBackup="true" 62 android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 63 android:hardwareAccelerated="true" > 64 65 <!-- Example of setting SDL hints from AndroidManifest.xml: 66 <meta-data android:name="SDL_ENV.SDL_ACCELEROMETER_AS_JOYSTICK" android:value="0"/> 67 --> 68 69 <activity android:name="SDLActivity" 70 android:label="@string/app_name" 71 android:alwaysRetainTaskState="true" 72 android:launchMode="singleInstance" 73 android:configChanges="layoutDirection|locale|orientation|uiMode|screenLayout|screenSize|smallestScreenSize|keyboard|keyboardHidden|navigation" 74 > 75 <intent-filter> 76 <action android:name="android.intent.action.MAIN" /> 77 <category android:name="android.intent.category.LAUNCHER" /> 78 </intent-filter> 79 <!-- Drop file event --> 80 <!-- 81 <intent-filter> 82 <action android:name="android.intent.action.VIEW" /> 83 <category android:name="android.intent.category.DEFAULT" /> 84 <data android:mimeType="*/*" /> 85 </intent-filter> 86 --> 87 </activity> 88 </application> 89 90 </manifest>