kill Self Process - Android Android OS

Android examples for Android OS:Process

Description

kill Self Process

Demo Code


//package com.java2s;

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

Related Tutorials