ITeye博客

程序退出代码片段

malong26 · 2013-05-03 11:26 · android · 移动开发 · Markdown


Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_HOME);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);

评论(0)

暂无评论。

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