Let Android know that we can handle USB devices

This is important on Android 29 and above if you don't want to be prompted for each device that you open
This commit is contained in:
Sam Lantinga 2021-08-04 13:13:22 -07:00
parent c14813a879
commit 3172615074
1 changed files with 4 additions and 0 deletions

View File

@ -77,6 +77,10 @@
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" /> <category android:name="android.intent.category.LAUNCHER" />
</intent-filter> </intent-filter>
<!-- Let Android know that we can handle some USB devices and should receive this event -->
<intent-filter>
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
</intent-filter>
<!-- Drop file event --> <!-- Drop file event -->
<!-- <!--
<intent-filter> <intent-filter>