Closed HamiguaLu closed 2 months ago
It goes as a sibling to the intent filter.
Here's an example: https://gist.github.com/tommie/568d11fecc3ab5b8fd20de39d4407389
Taken directly from the documentation
<manifest ...>
<uses-feature android:name="android.hardware.usb.host" />
<uses-sdk android:minSdkVersion="12" />
...
<application>
<activity ...>
...
<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" />
</activity>
</application>
</manifest>
Hi Just wonder where I should put the below line in my Androidmanifest.xm
Thanks in advance