kBLOG

All things about Life, Oracle Middleware and Technology

Arabic Language in Android

| 174 Comments

Arabic Android

Arabic Android

Thanks to Ahmad Essam‘s Article about google android, I had the ArabicReshaper.java file and made some enhancements.

With the help of this person, I was able to develop my first Arabic writer program that proves that Android is Arabic support and hopefully to have a fully functional application that read/write Arabic and may help other applications that need Arabic support to find their purpose perfectly.

Updated: now check this link for the SMS Arabic Mobile Manager

First the file lacked some enhancements regarding the placing of the letters, but it almost was complete, i only did a small touch and it was complete.

But the Reshaper class is only processing one word, it couldnt be a good success to combine arabic english letters, or add a space, so i made my helper class, ArabicUtilities.java with four functions in it, to determine if the text contain arabic letters, and to reshape a whole text containing english, Arabic and others.

The Tricky part was to insert the font to be working with, as described in Ahmad Essam’s blog article “How Does Arabization Work” that the free type font is already supported, and BiDi is already supported, so just reshaping and have a freetype font and your good to go, so how to load my arabic free type font library without having to force it in my SDK, because it wouldnt be reasonable to have this in a real working mobile.

The answer to that is really simple actually, in Android they provided a great thing called Asset Manager where i can have my read-only files to load them as streams or with whatever way i want -helpful for configurations and stuff-, and with a little help of java Font library it was done by only a few lines of code here is the snippet


AssetManager manager=this.getAssets();
try
{
manager.open("tahoma.ttf");
TextView tv=(TextView)this.findViewById(R.id.testMe);
tv.setTypeface(Typeface.createFromAsset(manager, "tahoma.ttf"));
tv.setTextSize(50f);
tv.setText(ArabicUtilities.reshape("adsdads الحمد لله asdad"));
}catch(Exception ex){
//TODO
}

and Hopp it all went great, and my android start reading Arabic like it was born doing it!

I’ll be putting the solution online for download soon, just need to modify few issues first.

Updated: now check this link for the SMS Arabic Mobile Manager

Updated: new news considering Android Application in here

  • http://blog.amr-gawish.com agawish

    Well I’m getting some el 7amduAllah, but not entirely done.

    but inshaAllah, it’ll be soon the one that supports it all.

  • youssef

    Assalamu alikum borther Amr,

    I’m trying to develop a simple android applications I used the ArabicReshaper class and your tip about Assets but as you know there is a problem with some letters. How did you resolve it? can you publish your code or send it by email.

    Jazak allah khair.

  • youssef

    Assalamu alikum borther Amr,

    I’m trying to develop a simple android applications I used the ArabicReshaper class and your tip about Assets but as you know there is a problem with some letters. How did you resolve it? can you publish your code or send it by email.

    Jazak allah khair.

  • john

    Can anyone please help me to install arabic on my android G1 ,, the think is I don’t know any think about programing ,
    Thanks for all of you

  • john

    Can anyone please help me to install arabic on my android G1 ,, the think is I don’t know any think about programing ,
    Thanks for all of you

  • ahmed kuza3i

    well im waiting 4 ur app i can live without writing arabic but i must be able 2 read arabic in connected letters does the availble app support that or do i have 2 wait 4 ur upcoming uptade 2 be able to read full words

    btw :i have a question my uncle in germany will send me a g1 in a couple of weeks but i have heard that android market doesnt work on unlocked g1s is that true .. if not can i ask how i can put money in the market to buy apps

  • ahmed kuza3i

    well im waiting 4 ur app i can live without writing arabic but i must be able 2 read arabic in connected letters does the availble app support that or do i have 2 wait 4 ur upcoming uptade 2 be able to read full words

    btw :i have a question my uncle in germany will send me a g1 in a couple of weeks but i have heard that android market doesnt work on unlocked g1s is that true .. if not can i ask how i can put money in the market to buy apps

  • Bassam

    Hello All,
    I installed today Android v1.5. I tried 2 different version the H and the G. but both they don’t have arabic support. They have french, italian, german, …and other but not arabic and still cannot read any arabic letter in my browser even if I change the encoding to UTF 8.
    Does anyone have any idea about that ?
    thank you

  • Bassam

    Hello All,
    I installed today Android v1.5. I tried 2 different version the H and the G. but both they don’t have arabic support. They have french, italian, german, …and other but not arabic and still cannot read any arabic letter in my browser even if I change the encoding to UTF 8.
    Does anyone have any idea about that ?
    thank you

  • Sam

    hi,
    i want to write in arabic , i am not able to fine ArabicUtilities class so that i can use it …..
    If possible if u can provide the proper steps i.e, how one should start ….it would be really great
    Any help would be appreciated …
    Thnx in advance….

  • Sam

    hi,
    i want to write in arabic , i am not able to fine ArabicUtilities class so that i can use it …..
    If possible if u can provide the proper steps i.e, how one should start ….it would be really great
    Any help would be appreciated …
    Thnx in advance….

  • Sahar

    أجاويش
    ماشاء الله عليك
    فعلا مبدع وشكرا لاهتمامك بمشكله اللغه العربيه بالجي ون

  • Sahar

    أجاويش
    ماشاء الله عليك
    فعلا مبدع وشكرا لاهتمامك بمشكله اللغه العربيه بالجي ون

  • usef

    hi, thank u so much for your app, works fine.. but is there a way you could tweek the program so it will let us read arabic in websites?? such as dubaimoon.com and then chose the keyboard method and let us chose the arabic keyboard??

    i hope u could get this going.. u rock!
    please emil me if u have any more updates usef5222@gmail.com

  • usef

    hi, thank u so much for your app, works fine.. but is there a way you could tweek the program so it will let us read arabic in websites?? such as dubaimoon.com and then chose the keyboard method and let us chose the arabic keyboard??

    i hope u could get this going.. u rock!
    please emil me if u have any more updates usef5222@gmail.com

  • A Sulaiti

    Hello,

    First of all i want to thank everyone who participated & helped our brother in his quest to enable Arabic in Android.

    I just ordered HTC Hero, can anyone confirm if i will be able to read/write/browse Arabic in it?

    Thanks & keep up the excellent work!

  • A Sulaiti

    Hello,

    First of all i want to thank everyone who participated & helped our brother in his quest to enable Arabic in Android.

    I just ordered HTC Hero, can anyone confirm if i will be able to read/write/browse Arabic in it?

    Thanks & keep up the excellent work!

  • ali

    Can anyone please help us to readin arabic (( farsi )) on bbc or other web, we realy need help, this will be help to iranian ppl who fights for freedowm. We want send ane recive news by our web wich is on farsi.

    Please if you have any news send mail to me

    Irmelat@gmail.com

  • ali

    Can anyone please help us to readin arabic (( farsi )) on bbc or other web, we realy need help, this will be help to iranian ppl who fights for freedowm. We want send ane recive news by our web wich is on farsi.

    Please if you have any news send mail to me

    Irmelat@gmail.com

  • Mahmoud Jisri

    I think there is a bug. please help fix it.
    details below:

    ArabicUtilities.reshape(“لأخيه”);
    or
    ArabicUtilities.reshape(“لايجعل”);
    gives error because there is no space after the laa.
    kindly try it to confirm.

  • Mahmoud Jisri

    I think there is a bug. please help fix it.
    details below:

    ArabicUtilities.reshape(“لأخيه”);
    or
    ArabicUtilities.reshape(“لايجعل”);
    gives error because there is no space after the laa.
    kindly try it to confirm.

  • http://www.informobility.com arabian

    on http://www.informobility.com you will find support for different OS, and to be released soon for android.

  • http://www.informobility.com arabian

    on http://www.informobility.com you will find support for different OS, and to be released soon for android.

  • http://blog.amr-gawish.com agawish

    Dear All, sorry for making you wait all this long.
    I’m so sorry about that, I’ve been extremely busy in work, and I’d like to inform you that I’ll be more active on regular basis from now on.

    I’ll be working on a new version of Arabic SMS Reader, and I’ll try to support the new Mobile devices.

    The working on Arabization of the whole system is done be Aman, you can find all the information you need from here
    https://sites.google.com/a/ut.utm.edu/arabic-android/

    unfortunately that google releases so many version of their android, so It’ll be hard to follow, but inshaAllah you will something good soon

    Thanks for your patience all :)

  • http://blog.amr-gawish.com agawish

    Dear All, sorry for making you wait all this long.
    I’m so sorry about that, I’ve been extremely busy in work, and I’d like to inform you that I’ll be more active on regular basis from now on.

    I’ll be working on a new version of Arabic SMS Reader, and I’ll try to support the new Mobile devices.

    The working on Arabization of the whole system is done be Aman, you can find all the information you need from here
    https://sites.google.com/a/ut.utm.edu/arabic-android/

    unfortunately that google releases so many version of their android, so It’ll be hard to follow, but inshaAllah you will something good soon

    Thanks for your patience all :)

  • Mohammad Baig

    I read some of the blogs regarding reading SMS on the HTC mobile. I am not an IT expert, instead a mechanical engineer. Would you pls help me what and how to install to read Arabic SMS on my mobile instead of squares. Thanks

  • Mohammad Baig

    I read some of the blogs regarding reading SMS on the HTC mobile. I am not an IT expert, instead a mechanical engineer. Would you pls help me what and how to install to read Arabic SMS on my mobile instead of squares. Thanks

  • http://blog.amr-gawish.com agawish

    Well Mohamed, If you want to read arabic there is a software that reads arabic Character called SMS with a red logo, try it.

  • http://blog.amr-gawish.com agawish

    Well Mohamed, If you want to read arabic there is a software that reads arabic Character called SMS with a red logo, try it.

  • http://foss-boss.blogspot.com/ Ahmed Kamal

    Hi Amr,

    Arabic support is the 3rd most starred feature now!
    http://code.google.com/p/android/issues/detail?id=5597

    Can you please offer your help to Google ;) to properly support Arabic in Android ?

  • http://foss-boss.blogspot.com/ Ahmed Kamal

    Hi Amr,

    Arabic support is the 3rd most starred feature now!
    http://code.google.com/p/android/issues/detail?id=5597

    Can you please offer your help to Google ;) to properly support Arabic in Android ?

  • http://blog.amr-gawish.com agawish

    I sent mail to one of the owners.

    Thanks Ahmed :)

  • http://blog.amr-gawish.com agawish

    I sent mail to one of the owners.

    Thanks Ahmed :)

  • http://www.arabicenglishdictionary.org Alex

    awesome good job, been waiting for this

    Arabic to English Dictionary

  • http://www.arabicenglishdictionary.org Alex

    awesome good job, been waiting for this

    Arabic to English Dictionary

  • MJ

    guys there is a rom on xdadevelopers that fully supports arabic, i’m using it on my G1.

    here’s the link

    http://dl.getdropbox.com/u/1701190/kb7sqi-magic-full-V2.7.2.zip

  • MJ

    guys there is a rom on xdadevelopers that fully supports arabic, i’m using it on my G1.

    here’s the link

    http://dl.getdropbox.com/u/1701190/kb7sqi-magic-full-V2.7.2.zip

  • http://www.facebook.com/group.php?gid=282398272109&ref=nf TT

    Arabic Android – الدعم الرسمي للغة العربية

    on Facebook

    Come and join us
    http://www.facebook.com/group.php?gid=282398272109&ref=nf

  • http://www.facebook.com/group.php?gid=282398272109&ref=nf TT

    Arabic Android – الدعم الرسمي للغة العربية

    on Facebook

    Come and join us
    http://www.facebook.com/group.php?gid=282398272109&ref=nf

  • Julia Albashir

    I have the Motorola Cliq and have been trying to figure out how to get my phone to read in Arabic. Can someone please tell me how to download it to my phone?

  • Julia Albashir

    I have the Motorola Cliq and have been trying to figure out how to get my phone to read in Arabic. Can someone please tell me how to download it to my phone?

  • Samir

    I have a Samsung Galaxy SMartphone . I can’t figure out how to get my news in arabic all i get are squares …can someone help me please…

  • Samir

    I have a Samsung Galaxy SMartphone . I can’t figure out how to get my news in arabic all i get are squares …can someone help me please…

  • Raed Younis

    Ahmad Essam or all others,
    Salamat to all. I’m looking for the application that will allow me ot read Arabic using my Behold @ Android phone. Can some one direct me to it? Is it available yet? If not when is that coming to being?

  • Raed Younis

    Ahmad Essam or all others,
    Salamat to all. I’m looking for the application that will allow me ot read Arabic using my Behold @ Android phone. Can some one direct me to it? Is it available yet? If not when is that coming to being?

  • thamer

    salam…all…….please help me what about xperia x10 it has android 1.6 I tried so many ththings but were not helpful in Arabia. ..see. u.

  • thamer

    salam…all…….please help me what about xperia x10 it has android 1.6 I tried so many ththings but were not helpful in Arabia. ..see. u.

  • ahmed.s

    hey every one
    thanks a lot for taking care of android system,and make it much better
    plz i have xperia x10,where i can find the fonts,and what i have to do to replace it.
    and what about the code ,where i have to paste it :D
    thanks alot brothers
    byez

  • ahmed.s

    hey every one
    thanks a lot for taking care of android system,and make it much better
    plz i have xperia x10,where i can find the fonts,and what i have to do to replace it.
    and what about the code ,where i have to paste it :D
    thanks alot brothers
    byez

  • moudavich

    hello

    Please how to support arabic reshaping in browser in my emulator

    android?

    And I haven’t found system/lib in my windows seven

    Please help!!!