Do following steps to detect your device in eclipse : -
On Mobile Side:- For Connect USB sync, your Android device needs to have USB Debugging enabled.
To enable Android USB Debugging Mode do following steps :-
Android 2.x - 3.x devices:
Go to Settings > Application > Development > USB Debugging.
Android 4.x devices:
Go to Settings > Developer Options > USB Debugging.
For devices running Android 4.2.2 or later, you may need to unlock Developer Options before it is available within the Menu:
- Go to Android home screen.
- Pull down the notification bar.
- Tap "Settings"
- Tap "About Device"
- Tap on the "Build Number" button about 7 times.
- Developer Mode should now be unlocked and available in Settings >
More > Developer Options or in Settings > Developer Options
On PC side
- Connect your device to the PC with USB cable.
- Download Google USB Driver
- Extract/Unzip “latest_usb_driver_windows.zip” file on your computer
(using 7-zip free software, preferably)
- Open device manager on your PC
- Windows 7 & 8 users ? search for
Device Manager from Start (or Start screen) and click to open.
- Windows XP users ? Google it
- You will see list of all devices attached to your computer in the
device manager. Just find your device (it’ll most probably
be in the Other devices list with a yellow exclamation mark by the
name of ADB devices), then Right-click on it and select Update
Driver Software.
- Select “Browse my computer for driver software” in the next window
- Now click the “Browse…” button and select the “usb_driver” folder
that we extracted in Step 3 from “latest_usb_driver_windows.zip”
file.
- Do NOT select the zip file, select the folder where the
contents of the zip file are extracted. And keep the Include
subfolders box checked
- During the installation (as a security check) Windows may ask your
permission to install the drivers, click “Install”
- Once the installation is complete you’ll see a refreshed list of
devices on the Device manager screen showing your phone’s driver
installed successfully.
Now in eclipse do following steps to install your app in your device:-
- Go to Run > Run Configurations > Target tab.
- Check option "Always prompt to pick device". And then running the
application from Eclipse,the prompt window finally showed
your device.