Mohamed Hemdan
Mohamed Hemdan

Reputation: 303

Android Emulator Arabic Support

I'm facing an issue here in my emulator (2.2 , 2.33). My problem is that i can't write any arabic letters in my edittexts even when i set the input language under the Language settings into arabic and set my windows language to arabic , The emulator still write in english . i need it so badly to fill my database to be ready for publishing. Your answer is highly appreciated !!

Upvotes: 2

Views: 5183

Answers (2)

Aleks G
Aleks G

Reputation: 57346

Ok, got your question better now. The problem is that Android default keyboard simply does not support Arabic input. You will NOT be able to input Arabic characters with the default Android keyboard. The only way to ago around it is to install a custom keyboard.

It's not too difficult, but not exactly straight forward, because you cannot access Market (sorry, Google Play) from the emulator. Here's what you need to do.

  1. On an actual phone install a keyboard that supports Arabic input - and the corresponding Arabic expansion pack. I suggest AnysoftKeyboard and its Arabic pack

  2. Connect your phone to your PC with a USB cable and copy the .apk files for the keyboard and the expansion pack to your PC. You'll need to use adb pull command for that: adb -d pull /data/app/com.menny.android.anysoftkeyboard.apk and adb -d pull /data/app/com.anysoftkeyboard.languagepack.arabic.apk

  3. (You can disconnect your phone now). Start the emulator and install these .apk files onto the emulator: adb -e intall com.menny.android.anysoftkeyboard.apk and adb -e install com.anysoftkeyboard.languagepack.arabic.apk

  4. Now in the emulator navigate to "Settings -> Language & and Keyboard settings", remove the checkmarks next to all devices, then scroll down to "AnySoftKeyboard" and place the checkmark next to it (press "OK" on the dialog). Just below it, select "AnySoftKeyboard Settings" and then "Keyboards". Make sure "English" and "Arabic" are both checked - and exit settings.

  5. Finally, you can start your application, select your edit text - the keyboard will pop-up - it will look different from the one you are used to. Click the "-> ABC ->" button at the top right corner of the keyboard to switch the language. Provided you have Arabic font installed, you should be able to input Arabic characters now.

Good luck! (Note that I do not know Arabic language at all, so the characters in the screenshot are the result of my random tapping of the keys on the keyboard to demonstrate the input.

enter image description here

Upvotes: 3

waqaslam
waqaslam

Reputation: 68187

I don't think there's native support for Arabic text till Honeycomb (3.0). But I've read if you make use of some Arabic fonts then it can be achieved. Read this

Upvotes: 1

Related Questions