I know how to start an APK from the shell using this command:
adb shell am start -a android.intent.action.MAIN -n package name/activity name
Is there a way to quit the apk using shell commands? Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try:
From help docs: “am kill: Kill all processes associated with PACKAGE. Only kills processes that are safe to kill — that is, will not impact the user experience.”
In other words: If you are actively using the application this will not kill it. It will only kill an application that is ready to be killed.
So if you wish to kill an application that is actively running use:
This will close it without regard to what it affects