AndroidManifest.xml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. <!-- Android 4.0.1 -->
  11. <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="16" />
  12. <!-- OpenGL ES 2.0 -->
  13. <uses-feature android:glEsVersion="0x00020000" />
  14. <!-- Touchscreen support -->
  15. <uses-feature
  16. android:name="android.hardware.touchscreen"
  17. android:required="false" />
  18. <!-- Game controller support -->
  19. <uses-feature
  20. android:name="android.hardware.gamepad"
  21. android:required="false" />
  22. <!-- External mouse input events -->
  23. <uses-feature
  24. android:name="android.hardware.type.pc"
  25. android:required="false" />
  26. <!-- Allow writing to external storage -->
  27. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  28. <!-- Allow access to the vibrator -->
  29. <uses-permission android:name="android.permission.VIBRATE" />
  30. <!-- if you want to capture audio, uncomment this. -->
  31. <!-- <uses-permission android:name="android.permission.RECORD_AUDIO" /> -->
  32. <!-- Create a Java class extending SDLActivity and place it in a
  33. directory under app/src/main/java matching the package, e.g. app/src/main/java/com/gamemaker/game/MyGame.java
  34. then replace "SDLActivity" with the name of your class (e.g. "MyGame")
  35. in the XML below.
  36. An example Java class can be found in README-android.md
  37. -->
  38. <application android:label="@string/app_name"
  39. android:icon="@mipmap/ic_launcher"
  40. android:allowBackup="true"
  41. android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
  42. android:hardwareAccelerated="true" >
  43. <!-- Example of setting SDL hints from AndroidManifest.xml:
  44. <meta-data android:name="SDL_ENV.SDL_ACCELEROMETER_AS_JOYSTICK" android:value="0"/>
  45. -->
  46. <activity android:name="SDLActivity"
  47. android:label="@string/app_name"
  48. android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
  49. >
  50. <intent-filter>
  51. <action android:name="android.intent.action.MAIN" />
  52. <category android:name="android.intent.category.LAUNCHER" />
  53. </intent-filter>
  54. <!-- Drop file event -->
  55. <!--
  56. <intent-filter>
  57. <action android:name="android.intent.action.VIEW" />
  58. <category android:name="android.intent.category.DEFAULT" />
  59. <data android:mimeType="*/*" />
  60. </intent-filter>
  61. -->
  62. </activity>
  63. </application>
  64. </manifest>