kill Process by process ID - Android Android OS

Android examples for Android OS:Process

Description

kill Process by process ID

Demo Code


//package com.java2s;

public class Main {

    public static void killProcess() {
        killProcess(android.os.Process.myPid());
    }//from w w w  .j a  va 2s . co m

    public static void killProcess(int pid) {
        android.os.Process.killProcess(pid);
    }
}

Related Tutorials