Accepted answer

first you need to enable usb debugging on your phone, then connect it to your computer via usb. then eclipse should automatically start debugging on your phone instead of the avd.


step by step:

  1. connect your phone to computer via usb
  2. enable usb debugging on your phone: settings -> applications -> development -> usb debugging
  3. change run configuration in your eclipse project: right click -> run as -> run configurations. in the target tab choose always prompt to pick device (or manual). then apply, run.

in the new window you should see your connected phone.


yes! you can debug android application while you are developing them follow these steps.. make sure that you have pc suite of the mobile manufacturer. for example:if you are using samsung you should have samsung kies

1.enable usb debugging on your device:settings > applications > development > usb debugging 2.enable unknownresources:settings>unknowresoures
3.connect your device to pc your application right click it: runas>run configurations>choose device>target select your device run.

you can also without using debugging cable.for that you need to install airdroid in your device.after installing enter the link in your browser and drag and drop .apk file.

happy coding!


first you need to set your device to debugging mode. on android 4.x that means as described in another answer in another question:

open up your device’s “settings”. this can be done by pressing the menu button while on your home screen and tapping “system settings”

now scroll to the bottom and tap “about phone” or “about tablet”.

at the “about” screen, scroll to the bottom and tap on “build number” seven times. [note this is no joke]

make sure you tap seven times. if you see a “not need, you are already a developer!” message pop up, then you know you have done it correctly.

done! by tapping on “build number” seven times, you have unlocked usb debugging mode on android 4.2 and higher. you can now enable/disable it whenever you desire by going to “settings” -> “developer options” -> “debugging” ->” usb debugging”.

the next step is to connect your device to your computer via the usb cable.

the next step is to install a usb driver for it. on the official website you find a list with sources for drivers for phones from various different companies.

eclipse now should give you the phone as a choice when you click on run and it presents you possible device to launch.

in some case eclpise will tell you target unknown which prevents you from using the device. if that's the case you might have to restart the phone. you might also have to check and recheckusb debugging, till the phone asks you to allow your particular computer to do usb debugging.


the usb drivers in \extras\google\usb_driver didn't work for me.

however the official drivers from samsung did:

note: i'm using a samsung galaxy s2 with android 4.0 on windows 7 64bit


what i did, by reading all of above answers and it worked as well: 7 deadly steps

  1. connect your android phone with the pc on which you are running eclipse/your map project.
  2. let it install all the necessary drivers.. when done, open your smart phone, go to: settings > applications > development > usb debugging and enable it on by clicking on the check button at the right side.
  3. also, enable settings > unknowresoures
  4. come back to eclipse on your pc. right click on the project/application, run as > run configurations... >choose device>target select your device run.
  5. click on the target tab from top. by default it is on the first tab android
  6. choose the second radio button which says launch on all compatible deivces/avds. then click apply at the bottom and afterwards, click run.
  7. here you go, it will automatically install your application's .apk file into your smart phone and make it run over it., just like on emulator.

if you get it running, please help others too.


thanks this helped. it was a little tricky getting the usb debugging option enabled on the samsung g3 after the update.

see below instructions on samsung g3 jellybean

  1. settings
  2. click --> about the phone
  3. tap on the build number
  4. “you are now 4 steps away from being a developer.” keep tapping until it says “you are now a developer.”
  5. go back to setting-->system --> developer option: enable usb debugging


check to see if the andriod device is installed on pc. see steps below. the 'other device' will change to 'andriod device' once the usb drive is installed. the browse path should be \extras\google\usb_driver\ not the sub directories under it. otherwise the installation will not find the package.

to install the android usb driver on windows 7 for the first time:

connect your android-powered device to your computer's usb port. right-click on computer from your desktop or windows explorer, and select manage. select devices in the left pane. locate and expand other device in the right pane. right-click the device name (such as nexus s) and select update driver software. this will launch the hardware update wizard. select browse my computer for driver software and click next. click browse and locate the usb driver folder. (the google usb driver is located in \extras\google\usb_driver.) click next to install the driver.


connect your device to system and set you device debug mode on when you run your application android virtual device avd will select device there you will see your connected device select your mobile device and thats all refer this link to set your device debugging mode on device manager showing your device


some people may have the issue where your phone might not immediately get recognized by the computer as an emulator, especially if you're given the option to choose why your phone is connected to the computer on your phone. these options are:

  • charge only
  • media device (mtp)
  • camera file transfer (ptp)
  • share mobile network
  • install driver

of these options, choose mtp and follow the instructions found in the quotes of other answers.

  • hope this helps!

goto run menu -> run configuration. right click on android application on the right side and click new. fill the corresponding details like project name under the android tab. then under the target tab. select 'launch on all compatible devices and then select active devices from the drop down list'. save the configuration and run it by either clicking run on the 'run' button on the bottom right side of the window or close the window and run again


for those who are trying to find how to enable debugging on devices running jelly bean 4.2 (e.g google nexus), you have to go to settings > apps > about tablet and tap the text "build number" 7 times slowly. go back to the now available settings > developer options and check usb debugging as stated in previous posts.


first of all, enable usb debugging on your device.

on most devices running android 3.2 or older, you can find the option under settings > applications > development.

on android 4.0 and newer, it's in settings > developer options.

in eclipse go to run configuration and select always prompt to pick deviceenter image description here


you don't have to do anything really except prepare your phone to be able to run debug and usb apps :

then simply launch your app from eclipse and your device will be used if you don't have a simulator running.


in eclipse:

  • goto run menu -> run configuration.
  • right click on android application on the right side and click new.
  • fill the corresponding details like project name under the android tab.
  • then under the target tab.
  • select 'launch on all compatible devices and then select active devices from the drop down list'.
  • save the configuration and run it by either clicking run on the 'run' button on the bottom right side of the window or close the window and run again


i had the same problem, and have not been able to get eclipse in windows 7 to recognise the device. the device is correctly configured, windows 7 recognises it on the usb port, and i edited the run settings in eclipse to prompt for a device, and it is just not there.

i ran it with the following steps:

  • connect the device to the computer with usb.
  • ensure the device is not locked (ie. timed out in the ui). i have to keep unlocking it while i'm working.
  • wait for windows to recognise the usb device, and when the autoplay menu comes up select open device to view files. it should open up the file system in the device, in explorer.
  • in explorer go to the eclipse workspace and find the apk file from the build (eg. myfirstapp.apk)
  • copy the apk file to the downloads directory on the device
  • on the device, use the my files app (or similar) to open the downloads directory.
  • click the downloaded file (my first app.apk) and android offers to install it
  • select install
  • the app is now in the installed apps. run it.

a second method is to mail the apk file to the device and then download and install it. (credits to a post on so which i can't find now).

a third method is to use dropbox. this requires installation of dropbox on the pc and on the device (from the play store) but once both are set up it runs very smoothly. just share a dropbox folder between the two devices, and then drop the apk into that folder on the pc, and open it on the device. with this method you don't need a usb connection, and can also install the apk on multiple devices. it also assists the management of multiple development versions (by making a separate sub-folder for each version).


just for additional info, if your apps is automatically run on emulator, right click on the project, run as -> run configuration, then on the run configuration choose on the manual. after that, if you run your apps you will be prompted to chose where you want to run your apps, there will be listed all the available device and emulator.

Related Query

More Query from same tag