Detect whether android device is connected to the pc using java
<p>How can i detect whether an android device is connected to the pc using java.I am creating a dynamic web project and in one jsp page i want to check whether an android device is connected to client machine.the client machine is assumed to have no android SDK installed.</p>

<p>Any help will be appreciated.</p>

<p>I want  result exactly the same in google play,as it shows in the below picture
<img src="http://i.stack.imgur.com/cjWPh.png" alt="enter image description here"></p>
