Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 849
Android Eve Avatar asked Feb 11 '11 18:02

Android Eve


People also ask

How do you stop a continuous output in Java?

To stop executing java code just use this command: System. exit(1);

How do you stop an infinite loop in Java?

You can break any loop using break; . If your program is already listening for keyboard input, you just need to put that break command inside a conditional statement that checks for the desired input.

How do I kill a process in STS?

You must use Task Manager (Alt+Ctrl+Del on Windows) for kill process.


1 Answers

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.

like image 188
Varun Avatar answered Sep 19 '22 02:09

Varun