Yes Erel I copy this from UsbSerialDemo example...
AddActivityText(main, <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" />)
but a compiler error shows... i check the libraries... and dont know what is it!
B4A version: 7.01
Parsing code. (0.00s)
Compiling code. (0.02s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
Generating R file. Error
AndroidManifest.xml:31: error: Error: No resource found that matches the given name (at 'resource' with value '@xml/device_filter').
Thank's