/
AndroidManifest.xml
76 lines (64 loc) · 2.85 KB
1
<?xml version="1.0" encoding="utf-8"?>
2
<!-- Replace com.test.game with the identifier of your game below, e.g.
3
4
5
com.gamemaker.game
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
6
7
8
9
package="org.libsdl.app"
android:versionCode="1"
android:versionName="1.0"
android:installLocation="auto">
10
11
12
13
<!-- OpenGL ES 2.0 -->
<uses-feature android:glEsVersion="0x00020000" />
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!-- 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" />
29
30
<!-- Allow writing to external storage -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
31
32
<!-- Allow access to the vibrator -->
<uses-permission android:name="android.permission.VIBRATE" />
33
34
35
36
<!-- if you want to capture audio, uncomment this. -->
<!-- <uses-permission android:name="android.permission.RECORD_AUDIO" /> -->
37
<!-- Create a Java class extending SDLActivity and place it in a
38
39
directory under app/src/main/java matching the package, e.g. app/src/main/java/com/gamemaker/game/MyGame.java
40
41
42
then replace "SDLActivity" with the name of your class (e.g. "MyGame")
in the XML below.
43
An example Java class can be found in README-android.md
44
45
-->
<application android:label="@string/app_name"
46
47
48
49
android:icon="@mipmap/ic_launcher"
android:allowBackup="true"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:hardwareAccelerated="true" >
50
51
52
53
54
<!-- Example of setting SDL hints from AndroidManifest.xml:
<meta-data android:name="SDL_ENV.SDL_ACCELEROMETER_AS_JOYSTICK" android:value="0"/>
-->
55
<activity android:name="SDLActivity"
56
android:label="@string/app_name"
57
58
android:alwaysRetainTaskState="true"
android:launchMode="singleInstance"
59
android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|keyboard|keyboardHidden|navigation"
60
>
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<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>
76
</manifest>