App重新启动

Intent i = getBaseContext().getPackageManager().getLaunchIntentForPackage(getBaseContext().getPackageName());  
i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);  
startActivity(i);  

 

posted @ 2016-02-18 18:09  BetterMan-  阅读(416)  评论(0编辑  收藏  举报