Skip to content

Instantly share code, notes, and snippets.

@rosshambrick
Created September 28, 2015 21:34
Show Gist options
  • Save rosshambrick/b831dcbad8bf6b96368b to your computer and use it in GitHub Desktop.
Save rosshambrick/b831dcbad8bf6b96368b to your computer and use it in GitHub Desktop.
<!-- For Arduino. -->
<uses-feature android:name="android.hardware.usb.host" />
<application
android:name=".HackathonApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.AppCompat" >
<activity
android:name=".Activity_Main"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<!-- For Arduino. -->
<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/arduino_filter" />
<intent-filter>
<action android:name="android.hardware.usb.action.USB_DEVICE_DETACHED" />
</intent-filter>
</activity>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment