First you have do this , change the ADB connection timeout. I think it defaults that to 5000ms and I changed mine to 10000ms to get rid of that problem.
If you are in Eclipse, you can do this by going through
Window -> Preferences -> Android -> DDMS -> ADB Connection Timeout (ms)
If the above solution is working in case your eclipse, do this
Restart the adb server by typing in the cmd:
adb kill-server
adb start-server
Or
simple go to DDMS Perspective and click on Reset adb.
and
There is many way to slove such kind of problem, sometimes it work when you do this
Reboot the phone and completely power down and power up.
Happy Coding !!!
Happy Coding !!!