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());
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
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
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
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
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
> >
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,
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
8 matches
Mail list logo