Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to terminate android application while debugging in eclipse

When i right click in the debug perspective and select Terminate, Eclipse disconnects, but the process continues to run on the device. How can i get the program to actually terminate so no more code is executed on the device? Am i looking at a bug? I dont recall if this worked in Galileo. I am currently using Windows 7 and Eclipse Indigo.

like image 268
Nick Avatar asked Jul 08 '12 15:07

Nick


2 Answers

Button "Stop Process" is in device view (Window >> Show view >> Devices). enter image description here

like image 191
Jin35 Avatar answered Sep 17 '22 23:09

Jin35


How can i get the program to actually terminate so no more code is executed on the device?

You can terminate the process from the DDMS perspective.

Am i looking at a bug?

Not really. Terminate from the Debug perspective has always meant "terminate the debug session" for Android apps at least, not "terminate the app" or "terminate the app's author with extreme prejudice". :-)

like image 34
CommonsWare Avatar answered Sep 17 '22 23:09

CommonsWare