How to stop a program running under Eclipse?

I can't find an option to stop a running program (whether in debug or release mode).

So for now, I stop the program (returning control to Eclipse) simply by closing the emulator.

Is there a better way of doing this? Such that I don't need to close (and restart) the emulator?


Solution 1:

I understand you want to stop your app on the emulator. For this you can open up the devices window (in the debug perspective), select the process and then press the stop button on the same window.

Solution 2:

Those who find it tedious switching between perspectives to stop the program (like I did), you can view the devices windows in your current perspective by selecting

Windows > Show View > Other... > Android > Devices

Solution 3:

Keep in mind that on Android, programs generally only 'stop' if you finish() or the system destroys them when memory is required. Why stop at all? You do not need to stop to fix/re-install/re-test, for example.

Solution 4:

In the "Debug" perspective, select the root of the application under "Debug" (where the listing of active threads is) and click the stop button.

Solution 5:

Working for me.

Windows -> Open perspective -> Other... -> DDMS

  1. In the Android view, on the left windows, you can see "Devices". There should be a list of applications that is running now (Emulator or physical devices). Click on the application you want to close. Normally the name is the name of the package + the name of the application
  2. Now click on the symbol of "Stop".

To come back to the normal view, you just have to press on the Java button on the top right side. You can also do it pressing: Windows -> Open perspective -> Other... -> Java