HOw run the android application on physical device

Go To


i made the connection between emulatore and physical device via USB.I had follow the link linkbut also it is not working properly it is running on the virtual device only.

when i am reseting adb then it is showing following error

[2012-04-04 10:06:40 - DeviceMonitor] Adb connection Error:An existing connection was forcibly closed by the remote host
[2012-04-04 10:06:41 - DeviceMonitor] Connection attempts: 1
[2012-04-04 11:00:41 - DeviceMonitor] Adb connection Error:An existing connection was forcibly closed by the remote host
[2012-04-04 11:00:42 - DeviceMonitor] Connection attempts: 1
[2012-04-04 11:32:53 - DeviceMonitor] Adb connection Error:An existing connection was forcibly closed by the remote host
2012-04-04 05:50
by ASR
please specify properly what you want - drulabs 2012-04-04 05:52
@KKD ... its pretty clear what he wants. - ngesh 2012-04-04 05:57
well ASR edited it just now.. - drulabs 2012-04-04 06:12
i have not edited requirement of the user i am editin - ASR 2012-04-04 06:14


Are you working with Eclipse? You have to connect your mobile device (with usb debugging mode on) with eclipse. How to do that, you can read here: Running APK on Device

edit: oh, it's the same link like yours, so what's the problem..?

2012-04-04 05:56
by yves.beutler
i have follow all thing but it is running on virtual device onl - ASR 2012-04-04 06:05
you should try to manually copy the apk file to your device. Do this by the command line. By the way, have you installed all necessary drivers for your device - yves.beutler 2012-04-04 06:10
how to do it manually.I don't know - ASR 2012-04-04 06:16
like @harishn said, you can use adb push .apk /system/app/.apk to manually put the apk file on your device. For this, please read the basic instructions of the android debug bridgeyves.beutler 2012-04-04 06:40
after the basic instructions, try to execute adb -s yourdevice install yourfile.apk. This should install the apk on your device (you see the portnumber/name in the configuration - yves.beutler 2012-04-04 06:45


There are two methods.

  1. First enable USB debugging in your device and connect to development PC. Use ADB tool to install your .apk file in device you connected.

  2. Connect your device to PC. After select Turn on USB storage by dragging the notifications area. After that you can see your device as one removable media in your PC. copy your .apk file to this drive. After disconnect your device and check the option allow installation from unknown resources from Settings in your device. Now open file manger and open your .apk file recently copied. It will ask you to install this apk.

2012-04-04 06:03
by Yugandhar Babu
can you elaborate what is adb too - ASR 2012-04-04 06:08
ADB means Android debug bridge. Visit this linkADBYugandhar Babu 2012-04-04 06:10
my means how to install apk file from adbtoo - ASR 2012-04-04 06:12
i given link about ADB, it is good to check there. It seem to be you are not interested to search online. it is not good practice. Visit the link i given, there you can find everything we can do with adb tool - Yugandhar Babu 2012-04-04 06:14


Enable USB debugging on your phone (Settings -> Applications -> Development -> USB debugging). You should now be able to deploy the app, provided you have set up the development environment correctly (ADT and the SDK must be downloaded and configured accordingly).

2012-04-04 05:53
by Dhruv Gairola
i have done this also but it is not working ? i have edited my question you should check that. - ASR 2012-04-04 05:57
@ASR .. you try installing proper pc suit too.. I mean the device drivers. - ngesh 2012-04-04 05:58
what os version are you using on your device? perhaps it does not match the minimum requirements of the app - Dhruv Gairola 2012-04-04 05:58
i am galaxy y and my software requirement is 2. - ASR 2012-04-04 05:59
yeah you need to install the proper device drivers. and make sure the device is actually plugged in - Dhruv Gairola 2012-04-04 06:00
go to the manifest file of your app. check this line : . make sure your device has a version number which is compatible with the minSdkVersion - Dhruv Gairola 2012-04-04 06:01
ya that is sam - ASR 2012-04-04 06:07


From command line, Go to android platform tools where adb is located. For the application you have created a .apk file would be generated

Use the below command to push the apk to the device.

adb push .apk /system/app/.apk

After pushing the apk, it would be ready to run on the device

2012-04-04 05:59
by Harish N


If you are using eclipse then this may be the solution

right click on the project-> Run As-> Run Configuration -> select Automatic -> uncheck all the device name in the list -> click on Apply-> Click On run

If both emulator and physical device is running it will prompt to select one.

2012-04-04 06:39
by Nishant