Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio Stop Button not Stopping

This has to be a dumb question, but in Android Studio 0.3.2 I'm attempting to stop my app at a particular spot so I can test a particular automatic resume feature the next time I restart the app (to imitate a failure). However, when I hit the stop button in the debugger, it just disconnects and the app keeps on running. Am I misunderstanding what the stop button does? Is there any way to legitimately kill the app from the debugger like you can for iOS apps in XCode?

like image 647
brainfree Avatar asked Nov 08 '13 20:11

brainfree


1 Answers

The stop button simply disconnects the debugger from your device.

To accomplish what you are trying to test you will have to press the home button which will go through the activity life cycle until onStop(). When you open your app again it will onStart() then onResume().

If you need more assistance just let me know.

like image 80
Steve N Avatar answered Oct 22 '22 06:10

Steve N