Intent i = AppActivity.context_self.getBaseContext().getPackageManager().getLaunchIntentForPackage(AppActivity.context_self.getBaseContext().getPackageName());
i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
AppActivity.context_self.startActivity(i);
i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
AppActivity.context_self.startActivity(i);
System.exit(0);
参考网址:
http://blog.csdn.net/faith_boys/article/details/8426414
http://blog.csdn.net/androidzhaoxiaogang/article/details/8582013
http://blog.csdn.net/lvxiangan/article/details/42120951
http://www.2cto.com/kf/201501/371476.html