Subsurface-mobile on Android: add USB intent filter

With this a few FTDI based dive computers should be visible from the app.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-05-29 20:37:18 -07:00
parent c8c56b3737
commit c05fe9fc9b
2 changed files with 20 additions and 0 deletions

View file

@ -70,6 +70,12 @@
<!-- <meta-data android:name="android.app.splash_screen_drawable" android:resource="@drawable/subsurface_mobile_splash" /> -->
<meta-data android:name="android.app.splash_screen_drawable" android:resource="@drawable/splash" />
<!-- Splash screen -->
<intent-filter>
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
</intent-filter>
<meta-data android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
android:resource="@xml/device_filter" />
<!-- support more aspect ratios -->
<meta-data android:name="android.max_aspect" android:value="3" />