2015-06-21 15:33:46 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2017-10-23 22:23:43 +00:00
|
|
|
<!-- Replace com.test.game with the identifier of your game below, e.g.
|
2015-06-21 15:33:46 +00:00
|
|
|
com.gamemaker.game
|
|
|
|
-->
|
|
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-10-23 22:23:43 +00:00
|
|
|
package="org.libsdl.app"
|
|
|
|
android:versionCode="1"
|
|
|
|
android:versionName="1.0"
|
|
|
|
android:installLocation="auto">
|
2015-06-21 15:33:46 +00:00
|
|
|
|
2017-10-24 06:26:40 +00:00
|
|
|
<!-- Android 4.0.1 -->
|
|
|
|
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="16" />
|
2015-06-21 15:33:46 +00:00
|
|
|
|
|
|
|
<!-- OpenGL ES 2.0 -->
|
|
|
|
<uses-feature android:glEsVersion="0x00020000" />
|
|
|
|
|
2018-06-06 16:42:12 +00:00
|
|
|
<!-- Touchscreen support -->
|
|
|
|
<uses-feature
|
|
|
|
android:name="android.hardware.touchscreen"
|
|
|
|
android:required="false" />
|
|
|
|
|
|
|
|
<!-- Game controller support -->
|
|
|
|
<uses-feature
|
|
|
|
android:name="android.hardware.gamepad"
|
|
|
|
android:required="false" />
|
|
|
|
|
|
|
|
<!-- External mouse input events -->
|
|
|
|
<uses-feature
|
|
|
|
android:name="android.hardware.type.pc"
|
|
|
|
android:required="false" />
|
|
|
|
|
2015-06-21 15:33:46 +00:00
|
|
|
<!-- Allow writing to external storage -->
|
|
|
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
2017-08-12 15:15:09 +00:00
|
|
|
<!-- Allow access to the vibrator -->
|
|
|
|
<uses-permission android:name="android.permission.VIBRATE" />
|
2015-06-21 15:33:46 +00:00
|
|
|
|
2016-08-12 02:04:49 +00:00
|
|
|
<!-- if you want to capture audio, uncomment this. -->
|
|
|
|
<!-- <uses-permission android:name="android.permission.RECORD_AUDIO" /> -->
|
|
|
|
|
2015-06-21 15:33:46 +00:00
|
|
|
<!-- Create a Java class extending SDLActivity and place it in a
|
2017-10-23 22:23:43 +00:00
|
|
|
directory under app/src/main/java matching the package, e.g. app/src/main/java/com/gamemaker/game/MyGame.java
|
|
|
|
|
2015-06-21 15:33:46 +00:00
|
|
|
then replace "SDLActivity" with the name of your class (e.g. "MyGame")
|
|
|
|
in the XML below.
|
|
|
|
|
2016-04-25 20:17:38 +00:00
|
|
|
An example Java class can be found in README-android.md
|
2015-06-21 15:33:46 +00:00
|
|
|
-->
|
|
|
|
<application android:label="@string/app_name"
|
2017-10-23 22:23:43 +00:00
|
|
|
android:icon="@mipmap/ic_launcher"
|
|
|
|
android:allowBackup="true"
|
|
|
|
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
|
|
|
android:hardwareAccelerated="true" >
|
2017-11-02 01:40:11 +00:00
|
|
|
|
|
|
|
<!-- Example of setting SDL hints from AndroidManifest.xml:
|
|
|
|
<meta-data android:name="SDL_ENV.SDL_ACCELEROMETER_AS_JOYSTICK" android:value="0"/>
|
|
|
|
-->
|
|
|
|
|
2015-06-21 15:33:46 +00:00
|
|
|
<activity android:name="SDLActivity"
|
2017-10-23 22:23:43 +00:00
|
|
|
android:label="@string/app_name"
|
2017-11-02 01:41:11 +00:00
|
|
|
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
|
2017-10-23 22:23:43 +00:00
|
|
|
>
|
2015-06-21 15:33:46 +00:00
|
|
|
<intent-filter>
|
|
|
|
<action android:name="android.intent.action.MAIN" />
|
|
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
|
|
</intent-filter>
|
|
|
|
<!-- Drop file event -->
|
|
|
|
<!--
|
|
|
|
<intent-filter>
|
|
|
|
<action android:name="android.intent.action.VIEW" />
|
|
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
|
|
<data android:mimeType="*/*" />
|
|
|
|
</intent-filter>
|
|
|
|
-->
|
|
|
|
</activity>
|
|
|
|
</application>
|
|
|
|
|
2017-10-23 22:23:43 +00:00
|
|
|
</manifest>
|