Kill application without root

1

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.

    
asked by anonymous 13.07.2015 / 16:04

3 answers

0

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

    
13.07.2015 / 21:14
-1

You can use it to destroy:

finish ();

Use this method to "kill" the rootless application.

    
13.07.2015 / 19:31
-1
    @Override
    public void onDestroy() {
       super.onDestroy()
    }
    
13.07.2015 / 21:00