Android Question USB serial port permision dialog every start up

Diego Marcelo Croatto

Member
Licensed User
Longtime User
Hi... how to skip the USB serial port permission dialog at every start up or reboot? (see image). Thank's
 

Attachments

  • USB.jpeg
    USB.jpeg
    90.4 KB · Views: 250

Diego Marcelo Croatto

Member
Licensed User
Longtime User
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
 
Upvote 0
Top