Changing Locale in Android Emulator [duplicate]

2019-04-06 17:45发布

问题:

This question already has an answer here:

  • How to change the default language of Android Emulator? 4 answers

I'm just starting to learn Android development. I have included a EditText component in my view and started the emulator in Eclipse.

When I type in the Textbox, the auto suggestions are coming up in Chinese language but I want to change this to English.

How do I change this Locale and Android Emulator?

I'm using the Android 2.1 for development.

回答1:

No Need to change local, just long press on the EditText widget, on the popup menu select input method, and change to the android keyboard.



回答2:

I am using the emulator with Android 4.2 + 4.3 and there is an app to set the locale called "Custom Locale".

Start emulator -> Launcher -> Custom Locale
=> Select the desired language from the list
=> Confirm with e.g "Select 'de_DE'"



回答3:

My solution is to use preinstalled on android emulator "Custom locale" application. Simply send intent with extra language parameter to it as below:

adb shell am broadcast -a com.android.intent.action.SET_LOCALE --es com.android.intent.extra.LOCALE EN

More information here - prepare android emulator for UI test automation.



回答4:

I'm using 2.3.3, but it should be similar:

Start emulator -> Launcher -> Settings -> Language & keyboard -> Select language