Do you want to terminate the process 'app' - Android Studio
Today, I update my Android Studio(4.1.1)
When I changes in my code and click on "Run App" then dialog shows Do you want to terminate the process 'app'
and there are 3 options Terminate
, Disconnect
, Cancel
.
Can you tell me what are difference in these because if click anyone then app restart.
Which option is best?
Solution 1:
There is best option. What you have to select depends on what you want to achieve.
This dialog only makes sense if you have already started the app before. If you now run again the app Android Studio want's to know what to do with the existing running app as an there can be only one running instance of an app at a time.
Terminate
This will directly exit the app without saving and data or anything else. The app process will just be terminated.
Disconnect
Close the connection between the debugger in Android Studio and the app as the debuggee. Afterwards the app will continue to run just without attached debugger.
Cancel
Do nothing and just close the dialog