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
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).
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
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
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.
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
7 matches
Mail list logo