TabActivity won't change language
<p>I have problem. 
I have TabActivity with intent tabs.
In my application user can change language in preference settings.
When user change language and application go back to my TabActivity doing this:</p>

<pre><code>@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    switch (requestCode) {
    case 1:
        finish();
        startActivity(getIntent());
        break;

    default:
        break;
    }
}
</code></pre>

<p>This code run perfectly, because all text is in changed language.</p>

<p>Problem occur, when i restart application. Some texts are not in proper language (are in system default). When i open preference screen once again and back to my TabActivity, texts are all translated.</p>

<p>How can i translate all texts after restart application?
Why when i first run application not all texts are in proper language?</p>

<p>Im sorry for my English, i hope u understand what i mean and help me. Thank you.</p>

<p>This is code from preferenceActivity when saving:</p>

<pre><code>    String lang = preferences.getString("Language", "");
    Configuration config = new Configuration();
    if (!TextUtils.isEmpty(lang))
          config.locale = new Locale(lang);
        else
          config.locale = Locale.getDefault();
    Locale.setDefault(new Locale(lang));
    getBaseContext().getResources().updateConfiguration(config, null);
</code></pre>

<p>tabActivity:</p>

<pre><code>public class PlanActivity extends TabActivity {

SharedPreferences preferences;

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setTitle(R.string.app_name);

    preferences = getSharedPreferences(Constans.PREF, Activity.MODE_PRIVATE);
    edytor = preferences.edit();

    String lang = preferences.getString("Language", "en");
    Configuration config = new Configuration();
    if (!TextUtils.isEmpty(lang))
        config.locale = new Locale(lang);
    else
        config.locale = Locale.getDefault();

    Locale.setDefault(new Locale(lang));
    getBaseContext().getResources().updateConfiguration(config, null);

     setContentView(R.layout.main);
        TabHost tabHost = getTabHost();
......... more
</code></pre>

<p>And this code is not working properly. I have to go to settings and go back to tabActivity for refresh texts</p>
