Android kill the process

                   

                    Intent intent = new Intent(MainActivity.this, LoginActivity.class);

                    intent.addCategory(Intent.CATEGORY_HOME);

                    intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);

                    startActivity(intent);

                    android.os.Process.killProcess(Process.myPid());

猜你喜欢

转载自sunzeping.iteye.com/blog/1856685
今日推荐