Android How to - Kill Process








Question

We would like to know how to kill Process.

Answer



public class Main {
  public static void restartSelf() {
    android.os.Process.killProcess(android.os.Process.myPid());
  }
}