javanetbeansusbevent-listenersystemeventlistener

Java USB Event Listener to get notified when usb is plugged in


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


Solution

  • Using usb4java might be an option.