app/src/main/java/com/example/iamatourist/MainActivity.java
@Override
    protected void onSaveInstanceState(Bundle savedInstanceState) {
        super.onSaveInstanceState(savedInstanceState);
        savedInstanceState.putString("savedLanguage", appLanguage);
    }
/**
     * This override prevents the data being lost when the activity is rebuilt,
     * for example, when the screen is rotated
     *
     * @param savedInstanceState the current state of the activity
     */
This override prevents the data being lost when the activity is rebuilt,
for example, when the screen is rotated

@param savedInstanceState the current state of the activity
This override prevents the data being lost when the activity is rebuilt for example when the screen is rotated @param savedInstanceState the current state of the activity
@Override
    protected void onSaveInstanceState(Bundle savedInstanceState) {
        super.onSaveInstanceState(savedInstanceState);
        savedInstanceState.putString("savedLanguage", appLanguage);
    }
@ Override protected void onSaveInstanceState ( Bundle savedInstanceState ) { super . onSaveInstanceState ( savedInstanceState ) ; savedInstanceState . putString ( "savedLanguage" , appLanguage ) ; }
This override prevents the data being lost when the activity is rebuilt,
 for example, when the screen is rotated
This override prevents the data being lost when the activity is rebuilt for example when the screen is rotated