Use this to change the language programmatically -
Locale locale = new Locale("en_US");
Locale.setDefault(locale);
Configuration config = new Configuration();
config.locale = locale;
context.getApplicationContext().getResources().updateConfiguration(config, null);
Enter the country code instead of "en_US" in any language you want ... for example, for japanese - "ja_JP" For Arabic - "ar" or check this link for the country code -
http://code.google.com/apis/igoogle/docs/i18n.html
And create a folder in res / values-ja for japanese or res / values-ar for arabic.
string.xml , . , , -ar .., ...
res/values-ar -
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<string name="spinner_label">تصفية حسب</string>
<string name="app_name">2011 فرق</string>
<string name="search">بحث :</string>
</resource>
, .