Hi There
I am testing USB serial using the sample code
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
I understand that this popup should appear the first time
"Allow the App XXX to access USB device?
Use by default for this USB device"
But why does it get display after disconnecting and restarting the app? Is there a way around it?
Thanks
iCAB
			
			I am testing USB serial using the sample code
			
				B4X:
			
		
		
		   If manager.GetDevices.Length = 0 Then
     Log("No connected usb devices.")
   Else
     Dim device As UsbDevice = manager.GetDevices(0) 'assuming that there is exactly one device
     If manager.HasPermission(device) = False Then
       ToastMessageShow("Please allow connection and click again.", True)
       manager.RequestPermission(device)
     Else
       usbserial.Initialize("serial", device, -1)
       usbserial.BaudRate = 9600
       usbserial.DataBits = usbserial.DATA_BITS_8
       usbserial.StartReading
       CheckConnected.Initialize("CheckConnected", 2000)
       CheckConnected.Enabled = True
     End IfI understand that this popup should appear the first time
"Allow the App XXX to access USB device?
Use by default for this USB device"
But why does it get display after disconnecting and restarting the app? Is there a way around it?
Thanks
iCAB
 
				 
 
		 
 
		 
 
		