如何实现Android重启应用程序代码 ?

http://www.cnblogs.com/gzggyy/archive/2012/10/30/2746718.html
Intent i = getBaseContext().getPackageManager() 
.getLaunchIntentForPackage(getBaseContext().getPackageName()); 
i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); 
startActivity(i);

猜你喜欢

转载自macleo.iteye.com/blog/1774757