aboutsummaryrefslogtreecommitdiffstats
path: root/android-mobile/AndroidManifest.xml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-29 20:37:18 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-29 20:37:18 -0700
commitc05fe9fc9b1c76bb447af8033f9917b1f5d10a1c (patch)
tree5d6893589bf90ad025ec036b32c3717846e00c5a /android-mobile/AndroidManifest.xml
parentc8c56b373706ad9be34ba92078e3a457287230a7 (diff)
downloadsubsurface-c05fe9fc9b1c76bb447af8033f9917b1f5d10a1c.tar.gz
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>
Diffstat (limited to 'android-mobile/AndroidManifest.xml')
-rw-r--r--android-mobile/AndroidManifest.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/android-mobile/AndroidManifest.xml b/android-mobile/AndroidManifest.xml
index e00433834..ee035c1ed 100644
--- a/android-mobile/AndroidManifest.xml
+++ b/android-mobile/AndroidManifest.xml
@@ -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" />