重启APP应用

重新启动APP应用的代码:

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

猜你喜欢

转载自pop1030123.iteye.com/blog/1901277