How do you eject the samsung device when the device is currently being used for testing using the Android-ADT I connected my Samsung Device(Android 4.1.2 ) for testing my app through the Android-ADT(Eclipse).


After closing the workspace when I tried to eject the device through
Eject I get a dialog box saying the phone is currently being used
please close any running software using the phone.

Thereby forcing me to unplug the device manually.
Any help appreciated.
From command prompt you can enter the following command

adb kill-server


and then try ejecting.