I have developed application in Arabic language, And I want to support a wild rang of Android Devices. I want to detect if the device support Arabic to load it in Arabic or to load in English.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you just need to check the configured locale you can use
<context>.getResources().getConfiguration().locale(is a java.util.Locale).If you want to display the appropriate language resources based on the user’s locale, the framework easily permits this. You add your string.xml files to appropriate resource folders as documented in this d.android.com article and the OS will use the appropriate one.