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 ...
-
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);
}
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
Similar Threads
-
By volsportsfan in forum Droid X General Discussions
Replies: 13
Last Post: 08-19-2011, 01:26 AM
-
By Shadez in forum Droid X General Discussions
Replies: 6
Last Post: 08-05-2010, 10:19 PM
-
By roach in forum Droid General Discussions
Replies: 11
Last Post: 08-03-2010, 10:59 PM
-
By JonathanF in forum Droid X Tech Support
Replies: 7
Last Post: 07-21-2010, 04:24 AM
-
By androidmike in forum Droid Hacks
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