[android-developers] Re: changing string resources

2009-01-28 Thread monmonja
Try this one String languageToLoad = "cn"; Locale locale = new Locale(languageToLoad); Locale.setDefault(locale); Configuration config = new Configuration(); config.locale = locale; getBaseContext().getResources().updateConfiguration(config, getBaseContext().getResources().getDisplayMetrics());

[android-developers] Re: changing string resources

2009-01-03 Thread EvgenyV
Just make sure I'm not missing something... I have some code: public class MyLangTest extends Activity { @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); String fromResources = getResources().getString(r.string.f_name); //Displayed "First Name" Locale newLocale = new Lo

[android-developers] Re: changing string resources

2008-12-16 Thread Dianne Hackborn
I am pretty sure that if a character doesn't exist in the current font, it will be retrieved from the system's callback font. I can't tell you what languages Android will support. Eventually it will be many of them, but it just depends on who makes what devices running Android in whatever languag

[android-developers] Re: changing string resources

2008-12-16 Thread j
As Android adds support for new languages besides English, my utility app should ideally support those languages without modification to the apk. Ideally, I would like to use a custom font instead of the default Android font (I believe there are only 2 fonts that come with Android platform). The

[android-developers] Re: changing string resources

2008-12-15 Thread Dianne Hackborn
The 1.0 platform only supports English; future versions will support other languages. On Mon, Dec 15, 2008 at 2:57 PM, Mark wrote: > > ok. thanks. > > I seem unable to find anything on the G1 that allows me to change > anything related to the language settings of the device. Is this > implement

[android-developers] Re: changing string resources

2008-12-15 Thread Mark
ok. thanks. I seem unable to find anything on the G1 that allows me to change anything related to the language settings of the device. Is this implemented on the G1? Mark On Dec 9, 5:41 pm, Mark Murphy wrote: > Mark wrote: > > However, we are trying to build an app that allows the user to > >

[android-developers] Re: changing string resources

2008-12-09 Thread Mark Murphy
Mark wrote: > However, we are trying to build an app that allows the user to > dynamically change the language the UI and content is presented in. Urk. > I > realize I could roll-my-own implementation but I was hoping there was > a standard way to support changing the locale. There might be,

[android-developers] Re: changing string resources

2008-12-09 Thread Dianne Hackborn
The localization stuff is really intended to be driven by an overall language selected by the user for the device (which will appear in a future release). If you want to force a language, you could probably force the Configuration for your resources to be set to the desired language, but you'll ne