I am writing an application which is using dictionaries. I want to switch between dictionaries any time user change input language. For example if the typing language is eng
InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); InputMethodSubtype ims = imm.getCurrentInputMethodSubtype(); String locale = ims.getLocale();
You can try this code to get Current Keyboard Language regional code.