Java Question Adding xml file to res/xml

kolbe

Active Member
Licensed User
Longtime User
For Open Accessory support in the IOIO library I've made changes to the manifest file using the manifest editor. Among the changes, meta data pointing to a new file resource.

B4X:
<meta-data a:name="android.hardware.usb.action.USB_ACCESSORY_ATTACHED" a:resource="@xml/accessory_filter" />

When I add this file to the project res/xml directory it just gets erased when I build the app, then it fails because the resource can't be found.

What is the correct way to add this file?
 
Top