When there is an active application's process running whether it be in the emulator or on a real device, and I try to close Android Studio, there is an alert dialogue that has three options. What is the difference between "Terminate" and "Disconnect"?
When there is an active application's process running whether it be in the emulator or on a real device, and I try to close Android Studio, there is an alert dialogue that has three options. What is the difference between "Terminate" and "Disconnect"?
Share Improve this question asked Mar 18 at 22:27 bighugedevbighugedev 1,2961 gold badge8 silver badges20 bronze badges1 Answer
Reset to default 0Terminate forcefully stops the running application on the emulator or physical device, killing the app process immediately, meaning it won’t continue running in the background. It is useful when debugging or testing, ensuring the app starts fresh when run again, similar to Force Stop in Android settings.
Disconnect detaches Android Studio from the running app but does not stop it. The app continues running on the device or emulator without being debugged. This is useful when you want to keep the app running but stop debugging it, similar to stopping a debugging session in other IDEs.
Use Terminate when you want to completely stop the app. Use Disconnect when you just want to detach the debugger but keep the app running.