安卓应用内重启

来源:互联网 发布:ubuntu怎么读音标 编辑:程序博客网 时间:2024/04/28 17:24
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); 

 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


http://blog.csdn.net/faith_boys/article/details/8432115

0 0
原创粉丝点击