Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I have a Samsung Galaxy tab that I'm using for development purposes. For some reason, when I choose 'Enable USB Debugging' in the settings menu, it turns off after a random period and drops whatever USB connection I have.

I'm debugging on a Macbook Pro, and have one coworker who has similar problems. Other coworkers don't have this issue.

share|improve this question
    
What Android version? –  Matthew Read Jan 25 '11 at 1:06
    
2.2. Non-rooted device. Kernel - 2.6.32.9 –  Daniel Wabyick Jan 25 '11 at 1:15
    
Are you sure it's not the USB connection dropping and causing USB debugging to get disabled? Perhaps USB debugging only make the problem visible? –  Lie Ryan Jan 25 '11 at 1:44
    
Its possible, but the USB debug checkbox actually gets unset. Additionally, on other Android devices, this isn't a problem. –  Daniel Wabyick Jan 25 '11 at 18:57
    
I'm seeing the same problem. No obvious reason and/or solution –  Dr.Dredel Feb 17 '11 at 21:50

4 Answers 4

I run into this same problem with a Galaxy Tab 4 with Eclipse on OSX.

I found that if you select the "use same device to future launches" option, it'll eliminate having to unplug and plug the USB

share|improve this answer

Well, I figured out how to get it to stop unchecking the box, though the solution is hardly much less a pain.

If you activate the debugging mode, plug in the cable, run your test and then as soon as you're done testing (or if you're not actually debugging, as soon as the app is installed), unplug it, the checkbox will stay checked indefinitely.

You're still replugging the device every re-compile, but at least you don't have to keep going back to the settings menu to re-check the box.

share|improve this answer

Have you tried to change the ADB connection time-out value?

You can find it under Eclipse->Preferences->Android->DDMS

share|improve this answer
    
The issue isn't just an Eclipse issue; even "adb devices" fails to see the device after it disconnects. Also, the "bug" icon in the title bar goes away, so the disconnect definitely happened at the device side. I'll try changing this preference anyway, just in case. –  Edward Falk Sep 10 '13 at 3:40

I also see this. I doubt it's the USB connection or the rest of the setup because I can develop & debug for hours with a Moto Droid connected to the same system. Galaxy Tab drops out of USB mode spontaneously after about a minute. Only way to get it back is to unplug the cable, re-enable USB debugging, and reconnect.

One way to keep the Galaxy Tab connected is to click the entry with its serial number in the Devices pane in Eclipse whenever it goes grey. That's only a little less annoying than cycling the USB cable and the debug setting on the Tab because if you wait too long, the Tab disconnects and its entry disappears from Devices.

share|improve this answer
    
I don't have a powered USB hub, but I heard from a developer may solve the problem. If anyone has one, and can see if that fixed there issue, perhaps post that as an answer. –  Daniel Wabyick Mar 7 '11 at 22:59
    
sucks, but this seems to be the only solution with this particular device –  Joel Martinez Dec 14 '11 at 16:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.