I am writing a software in java, netbeans and there's a module in which I need to run a code whenever a "usb" specifically an "android device" is plugged in or plugged out
So I need to know if there's any java class I can use Like usb event listener or anything
Thanks
Using usb4java might be an option.