Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion build/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,11 @@
android:icon="@mipmap/ic_launcher"
android:allowBackup="true"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:appCategory="game"
android:hardwareAccelerated="true" >

<meta-data android:name="android.app.category" android:value="game" />

<meta-data android:name="SDL_ENV.SDL_ACCELEROMETER_AS_JOYSTICK" android:value="0"/>

<activity android:name="TIC"
Expand All @@ -81,6 +84,8 @@
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" /> <!-- Android TV -->
<category android:name="android.intent.category.GAME" />
</intent-filter>

<!-- Let Android know that we can handle some USB devices and should receive this event -->
Expand All @@ -89,7 +94,7 @@
</intent-filter>

<!-- Drop file event -->
<!-- Handle .tic files -->
<!-- Handle .tic files, legacy support, Android 12 or older -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
Expand All @@ -107,6 +112,15 @@
<data android:mimeType="*/*" android:pathPattern=".*\\.TiC" />
</intent-filter>

<!-- Handle .tic files, Android 12+ -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="content" />
<data android:scheme="file" />
<data android:mimeType="*/*" android:pathSuffix=".tic" />
</intent-filter>

<!-- Handle .png files -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
Expand Down
Loading