BroadcastReceiver for Ethernet(RJ45) and USB in Android TV -


how can detect plug , unplug of ethernet cable , usb devices(any device pendrive) in android tv. there receiver internet connectivity?

i need check tvbox app.

solution:

got solution ethernet - can checked type_ethernet in connectivitymanager

but still usb remaining

ethernet

check out connectivitymanager the connection type type_ethernet

usb

check out usbmanager broadcast action_usb_accessory_attached.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -