`
liuguofeng
  • 浏览: 432832 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

android 完美退出应用程序。

 
阅读更多
 Intent intent = new Intent(Intent.ACTION_MAIN); 
                        intent.addCategory(Intent.CATEGORY_HOME); 
                        intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); 
                        startActivity(intent); 
                    android.os.Process.killProcess(android.os.Process.myPid());
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics