Hi,
I have modified the device_filter.xml to his simple expression acording to the develloper.android site, I have always the same mistake at power up.
<?xml version="1.0" encoding="utf-8"?>
<resources>
<usb-device vendor-id="9025" product-id="66" class="2" subclass="0" protocol="1" />
</resources>
My manifest:
AddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="30"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.
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" />)
CreateResource(xml, device_filter.xml,
<resources>
<usb-device vendor-id="9025" product-id="66" class="2" subclass="0" protocol="1" />
</resources>
)
I am always obliged to accept to connect USB device.
At the begenning I had a lot of devices in the xml file, and finally I have reduced the device list to only one arduino usb device.
I was wondering if it was a mistake according to the serial library so I did two applications one with Fellusb and one with serialsub, same problem at power up.
Once the USB permission is accepeted, every thing is working very fine.
I don't understand wat's wrong ?
- We are running apps on android 7.1.1 and 7.1.2 maybe version are too old?
- Platforms are Tinkerboard or Santino.. maybe not compatible?
- does the permission is really stored in the system?
- In manifest for </intent-filter>... AddActivitytext or AddApplicationText ?
As JordiCP sujest I tried also to define vendor-id(and others) in hex like this 2341 and like this 0x2341 no change...
If there is no other solution I will communicate in Bluetooth, it's working, but I'm not sure that 20 boards communicating in BT will not raise other radio issues...
Tell-me