I think that it is not easy to detect and tell the user to instruct. You can just do something like that. In the XML file:
<EditText android:id="@+id/LanguageText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:inputType="text" android:digits="@string/app_lan" />
In Strings.xml:
<string name="app_lan">YOUR LANGUAGE</string>
Example If English:
<string name="app_lan">abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ</string>
For the ur language is the same as this.
source share