Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing Locale in Android Emulator [duplicate]

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.

like image 823
Veera Avatar asked Mar 02 '11 12:03

Veera


People also ask

How do I change the region on my Android emulator?

Go to app list in your emulator. Start Custom Locale app. Click on “Add new locale” button and fill your locale code, for example “en_US” for english in the US.

How do I turn off location on emulator?

Open the settings app in the emulator and uncheck the option with a name like Use GPS satellites . You might have to poke around a bit in the sub options to find it. If you tell us the exact android version, we can tell you where to look exactly. What do you mean by it is enables automatically?


2 Answers

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'"

like image 50
intertag Avatar answered Oct 06 '22 00:10

intertag


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.

like image 20
denys Avatar answered Oct 05 '22 22:10

denys