Programmatically enabling a custom keyboard
Just open input method settings activity
using Intent
.
Intent enableIntent = new Intent(Settings.ACTION_INPUT_METHOD_SETTINGS);
enableIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
this.startActivity(enableIntent);