Prashant Mishra
Prashant Mishra

Reputation: 73

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

Upvotes: 2

Views: 2091

Answers (1)

ldz
ldz

Reputation: 2215

Using usb4java might be an option.

Upvotes: 1

Related Questions