[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

[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).

[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

[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 mmur...@commonsware.com wrote: Mark wrote: However, we are trying to build an app that

[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 mark.nuetzm...@gmail.com 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.

[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, but