using this code
Locale locale = new Locale("ar");
Locale.setDefault(locale);
Configuration config = new Configuration();
config.locale = locale;
getBaseContext().getResources().updateConfiguration(config,
getBaseContext().getResources().getDisplayMetrics());
setContentView(R.layout.main);
the acticivity language converted to arabic correctly
but when i am trying to do it with english
Locale locale = new Locale("en");
Locale.setDefault(locale);
Configuration config = new Configuration();
config.locale = locale;
getBaseContext().getResources().updateConfiguration(config,
getBaseContext().getResources().getDisplayMetrics());
setContentView(R.layout.main);
nothing happen ???????? why ??
On Jul 10, 11:43 am, Ali Chousein <[email protected]> wrote:
> > ......... load
> > the layout again after changing the locale
>
> Martin, good information man. Although I didn't ask the original
> question, thank you. If I ever support localization I'll keep this in
> my mind.
>
> ----------
> Ali Chousein
> Geo-Filtered Assistanthttp://geo-filtered-assistant.blogspot.com/
> Cisco Android marketplace (Chosen for Cisco
> Cius)https://marketplace.cisco.com/apphq/products/510
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en