最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

What is the difference between "Terminate" and "Disconnect" when attempting to quit Android

programmeradmin2浏览0评论

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 badges
Add a comment  | 

1 Answer 1

Reset to default 0

Terminate 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.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论