My app opens the input method picker (the menu where you choose a keyboard) with InputMethodManager.showInputMethodPicker(). My app doesn\'t actually create the
Simple you can know by using buildin function:
@Override
public void onWindowFocusChanged(boolean hasFocus) {
super.onWindowFocusChanged(hasFocus);
isMyInputMethodEnabled();// write what ever you want to do after default keyboard selected
}
public void isMyInputMethodEnabled() {
String imId = Settings.Secure.getString(getContentResolver(), Settings.Secure.DEFAULT_INPUT_METHOD);
if (imId.contains(getPackageName())) {
startActivity(new Intent(this, Main_uk.class));
finish();
}
}