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

This is a discussion on Changing locale programmatically on DroidX(2.1 Update 1) does not work ! within the Droid X Tech Support forums, part of the Droid X Forum category; 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 ...

+ Reply to Thread
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. Sponsor
    DF Advertising
    Join Date
    Nov 2008
    Location
    DroidForums.net
     
     
     
     

Sponsors

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 Droid General Discussions
    Replies: 11
    Last Post: 08-03-2010, 10:59 PM
  4. Replies: 7
    Last Post: 07-21-2010, 04:24 AM
  5. Replies: 1
    Last Post: 05-03-2010, 08:25 AM

Search tags for this page

android change locale from code
,

android change locale 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
,
android+change+time programmatically
,
droidx camera null location
,
locale android 2.2
,
locale settings android code
,
more locale 2.1
,
programmatically changing locale android
,
spanish locale droid x
Click on a term to search our site for related topics.

Tags for this Thread