I have allowed the user to change languages. The language change is made on its own activity. When the user presses the back button, I want all the text to switch to the chosen language.
I’m using something like the following..
@Override
public void onResume() {
if (language.equals("en"))
txTitle.setText("TITLE");
else
txTitle.setText("TITEL");
super.onResume();
}
It doesn’t refresh the page on pressing back.
When you go back to your previous activity,
onRestart()event will be fired so you can callonCreate()method from withinonRestart()to re-create your activity which I believe will change the language of your app.