How to provide Arabic Language support in Android Application

android, arabic, localization

Solution

To provide localization support for different languages, we need to add the language specific resources into separate folder. For eg:Inorder to provide layouts for Arabic language we need to create a separate folder under res folder i.e.,`res/layout-ar` like this.

In order to access the current language via code we can get the current language by calling

Locale.getDefault().getDisplayLanguage();

for more information look into following links: for localization :http://developer.android.com/guide/topics/resources/localization.html

for RTL layout mirroring (Arabic like languages):http://android-developers.blogspot.de/2013/03/native-rtl-support-in-android-42.html

Problem

I have made an application in android but now I have to provide arabic language support. I have checked many of answers in stackoverflow but from any answer I didn't get correct answer.

Original source