I'm trying to use usb serial port but all example I've seen use broadcast receiver. in their code they give a pending intent to UsbSeialManager.requestPermission(pi). now i want to know if there is a way to see if onReceive() is called or not. and to wait for it. I need a method that return correct usb(onReceive() is called) PS I'm making a class for each connected usb.
Within the help of Log.d("key","value");
you can print the log to identify that onReceive()
is called or not
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.