DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Results 1 to 1 of 1

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

  1. Droid Newbie
    Marty213's Avatar
    Member #
    118474
    Join Date
    Sep 2010
    Posts
    1
    Phone
    DroidX
    #1

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

    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().updateConfiguratio n(config, null);

    Intent intent = new Intent(this, ActivityB.class);
    intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
    startActivity(intent);
    }
  2.  
     
     
     

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. ps3 to droidx 3g hotspot, does it work?
    By volsportsfan in forum Droid X General Discussions
    Replies: 13
    Last Post: 08-19-2011, 01:26 AM
  2. DROIDX Froyo Update Delayed to September?
    By Shadez in forum Droid X General Discussions
    Replies: 6
    Last Post: 08-05-2010, 10:19 PM
  3. is update for droidx or droid
    By roach in forum Android General Discussions
    Replies: 11
    Last Post: 08-03-2010, 10:59 PM
  4. Replies: 7
    Last Post: 07-21-2010, 04:24 AM
  5. re-adding German in settings > locale (More Locale 2 doesn't work)
    By androidmike in forum Android Hacks and Help
    Replies: 1
    Last Post: 05-03-2010, 08:25 AM

Search tags for this page

android change date programmatically
,
android change locale from code
,
android change locale in code
,

android change locale programmatically

,
android change system date programmatically
,
android edit contact programmatically
,
android how to set locale programmatically
,
android locale change
,
android programatically change configuration
,

android set locale programmatically

,
android set time programmatically
,
change time android programmatically
,
locale android 2.2
,

more locale 2.1

,
programmatically changing locale android
Click on a term to search our site for related topics.

Tags for this Thread

Find us on Google+