mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-12 09:18:21 +03:00
Run GameActivity in a private :game process and terminate it after SDL shutdown completes, ensuring that each game starts with fresh native state. Refresh the launcher game list from disk when it resumes instead of using the process-local Launcher singleton from GameActivity.
111 lines
4.2 KiB
XML
111 lines
4.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Replace com.test.game with the identifier of your game below, e.g.
|
|
com.gamemaker.game
|
|
-->
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:installLocation="auto">
|
|
|
|
<!-- OpenGL ES 2.0 -->
|
|
<uses-feature android:glEsVersion="0x00020000" />
|
|
|
|
<!-- Touchscreen support -->
|
|
<uses-feature
|
|
android:name="android.hardware.touchscreen"
|
|
android:required="false" />
|
|
|
|
<!-- Game controller support -->
|
|
<uses-feature
|
|
android:name="android.hardware.bluetooth"
|
|
android:required="false" />
|
|
<uses-feature
|
|
android:name="android.hardware.gamepad"
|
|
android:required="false" />
|
|
<uses-feature
|
|
android:name="android.hardware.usb.host"
|
|
android:required="false" />
|
|
|
|
<!-- External mouse input events -->
|
|
<uses-feature
|
|
android:name="android.hardware.type.pc"
|
|
android:required="false" />
|
|
|
|
<!-- Audio recording support -->
|
|
<!-- if you want to capture audio, uncomment this. -->
|
|
<!-- <uses-feature
|
|
android:name="android.hardware.microphone"
|
|
android:required="false" /> -->
|
|
|
|
<!-- Allow downloading to the external storage on Android 5.1 and older -->
|
|
<!-- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="22" /> -->
|
|
|
|
<!-- Allow access to Bluetooth devices -->
|
|
<!-- Currently this is just for Steam Controller support and requires setting SDL_HINT_JOYSTICK_HIDAPI_STEAM -->
|
|
<!-- <uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30" /> -->
|
|
<!-- <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" /> -->
|
|
|
|
<!-- Allow access to the vibrator -->
|
|
<!-- <uses-permission android:name="android.permission.VIBRATE" /> -->
|
|
|
|
<!-- if you want to capture audio, uncomment this. -->
|
|
<!-- <uses-permission android:name="android.permission.RECORD_AUDIO" /> -->
|
|
|
|
<!-- Create a Java class extending SDLActivity and place it in a
|
|
directory under app/src/main/java matching the package, e.g. app/src/main/java/com/gamemaker/game/MyGame.java
|
|
|
|
then replace "SDLActivity" with the name of your class (e.g. "MyGame")
|
|
in the XML below.
|
|
|
|
An example Java class can be found in README-android.md
|
|
-->
|
|
<application android:label="@string/app_name"
|
|
android:icon="@drawable/ic_launcher"
|
|
android:allowBackup="false"
|
|
tools:ignore="GoogleAppIndexingWarning">
|
|
|
|
<!-- Example of setting SDL hints from AndroidManifest.xml:
|
|
<meta-data android:name="SDL_ENV.SDL_ACCELEROMETER_AS_JOYSTICK" android:value="0"/>
|
|
-->
|
|
|
|
<activity android:name=".LauncherActivity"
|
|
android:exported="true">
|
|
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity android:name=".GameActivity"
|
|
android:label="@string/app_name"
|
|
android:process=":game"
|
|
android:alwaysRetainTaskState="true"
|
|
android:configChanges="layoutDirection|locale|orientation|uiMode|screenLayout|screenSize|smallestScreenSize|keyboard|keyboardHidden|navigation"
|
|
android:theme="@style/AppTheme"
|
|
android:hardwareAccelerated="true"
|
|
>
|
|
|
|
<!-- 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>
|
|
|
|
<activity android:name=".LicensesMenuActivity"
|
|
android:label="@string/action_licenses"
|
|
android:parentActivityName=".LauncherActivity"
|
|
android:exported="false">
|
|
</activity>
|
|
|
|
<activity android:name=".LicensesActivity"
|
|
android:parentActivityName=".LicensesMenuActivity"
|
|
android:exported="false">
|
|
</activity>
|
|
</application>
|
|
|
|
</manifest>
|