Is there any way to kill another application (other than mine) via code without using a root command for this? I'm trying to use the "am force-stop" command, but without success.
Is there any way to kill another application (other than mine) via code without using a root command for this? I'm trying to use the "am force-stop" command, but without success.
You can only communicate with another application if it leaves. Example: If you want to close YouTube, YouTube needs to let you do this.
I'm not sure what the command is but I recommend you read it here: link
You can use it to destroy:
finish ();
Use this method to "kill" the rootless application.
@Override
public void onDestroy() {
super.onDestroy()
}