This problem has been bugging me for ages and I can't seem to fix it or fully localize the source of the problem (although at times I can force it by allowing the phone to Standby while connected to Eclipse, but sometimes that doesn't even cause a problem).
Let's go through the steps.
I connect my device, it pops up and seems to be working fine:
I double-click it to ensure LogCat is logging it at which point 1 of 2 things happen:
It seems to work, I swap to LogCat window which sliiides through a bunch of text and then goes white, I swap back to Devices and see
Device goes offline immediately
Now if I leave it for a while and do random things around Eclipse, the number of offline devices slowly increase (they all have the same ID, mine):
Things that help:
I have Googled and looked at other questions regarding this and only managed to find a few "guides" that tell me to restart the adb server. I've done that through the use of the commands:
adb kill-server
adb start-server
The problem is, that only fixes it very rarely. At times a complete PC reboot will fix it, but not always...
Also, turn off Standby mode on your phone when it's plugged in. For me, this is achieved by going
- Settings -> Programs -> Development -> Stay Awake
Does anyone have a true solution for this? I've tried most of what I could find on Google and had zero luck yet and it's really starting to annoy me.
EDIT: Holy crap, this is SO ANNOYING! EDIT 2: Adding a bounty to this as soon as I can.
EDIT 3: Probably related to the fact that it's connected through a USB hub as our machines are located in another room to keep noise & heat levels down in our offices. I have gotten it stable enough to deploy applications and test very quickly, but it still goes Offline at times. Oh well, done with my project for now.