AndroidManifest.xml 3.8 KB

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