UPDATED
i have been looking for solution but couldnt found it yet ..
i have tried this
// Check for language
String tempLang = Locale.getDefault().getLanguage();
if (tempLang == "ar") {
Locale AR_LOCALE_EAST_NUMBERS = new Locale.Builder().setLanguageTag("ar-u-nu-arab").build();
Locale.setDefault(AR_LOCALE_EAST_NUMBERS);
firstName.setKeyListener(DigitsKeyListener.getInstance(getActivity().getString(R.string.input_charatars_only_valid)));
} else {
firstName.setKeyListener(DigitsKeyListener.getInstance(getActivity().getString(R.string.input_charatars_only_valid)));
}
first of all it gives error of API .. it says to use
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
i want to use it for 15 API as my minSdk is 15
is it correct or any changes needed
UPDATED :
kindly also tell how to convert the digits in english as
"abcdefghijklmnopqrstuvwxyz123456789 " and a sapce also ""
what would be done to convert the string to arabic with abc,123 & a space ?
PS : i am new here kindly ignore is any mistake is done .. thanks