ITeye博客

Android kill the process

sunzeping · 2014-02-13 10:35 · Android · 移动开发 · Markdown

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());

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。