Changing locale programmatically on DroidX(2.1 Update 1) does not work !

Discussion in 'Droid X Tech Support' started by Marty213, Sep 15, 2010.

  1. Marty213
    Offline

    Marty213 New Member

    Joined:
    Sep 15, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I am trying to change the locale programmatically on Android. The code I have below works fine on the Incredible(2.2) and Droid(2.2). However, it doesn't on the DroidX(2.1 Update 1)
    Anyone here have encountered similar problem ?? Any insight would be helpful.
    public void overrideLocale(String languageToLoad) {
    Locale locale = new Locale(languageToLoad);
    Locale.setDefault(locale);
    Configuration config = new Configuration();
    config.locale = locale;

    getBaseContext().getResources().updateConfiguration(config, null);

    Intent intent = new Intent(this, ActivityB.class);
    intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
    startActivity(intent);
    }
Search tags for this page
android change date programmatically
,

android change locale programmatically

,
android change system date programmatically
,
android set system locale programmatically
,
android set time programmatically
,
android-locale-change
,
change time android programmatically
,
how to change device date and time pogramitically in andr
,
last update time contact android programmatically
,

more locale 2.1

,
morelocale 2 version 2.1