I saw many posts about this subject but none of them worked.
I have an EditText
that is used latter to perform a query.
It is important for me to know wether the language is English or Hebrew.
I haev tried many solutions such as:
InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
InputMethodSubtype ims = imm.getCurrentInputMethodSubtype();
String locale = ims.getLocale();
where returns "".
Also tried to use Locale but it returns the language of the device and not the language of the current keyboard.
Is there any way to do it instead of checking each letter?
if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) {
//english letter
}
Thank you