DisplayMetrics metrics = getResources().getDisplayMetrics(); Configuration configuration = getResources().getConfiguration(); configuration.setLocale(locale); getResources().updateConfiguration(configuration, metrics); //重新啟動 Activity Intent intent = new Intent(this, MainActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); startActivity(intent);