AndroidManifest.xml 4.2 KB

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