Use Java to detect if device is plugged into computer
<p>I was wondering if it is possible to detect whether or not my Android phone is plugged into windows, so that if it is, I can run another command?</p>

<p>By the way, I mean for a Java app that is on the computer not the phone.</p>
