Intent i = context.getPackageManager().getLaunchIntentForPackage(context.getPackageName()); i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); context.startActivity(i);
參考來源:
http://stackoverflow.com/questions/2470870/force-application-to-restart-on-first-activity
沒有留言:
張貼留言