I have a edittext which the user enters some text into
Once they press the submit button I process the text they entered.
I need to apply different logic if they have entered English and any other language.
What’s the best way to assess if its English they have entered?
1) Get the language of the keyboard? Is this possible. On my SE XPeria I can change the keyboard language and the device local still remains English
2) Analyse the string to check if its in English???
3) Worst case scenario I ask the user if they entered English
You can check using the Unicode of the characters entered.
Refer to http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Character.UnicodeBlock.html