AndroidManifest.xml 4.3 KB

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