Programmatically enabling a custom keyboard
问题 I've developed custom keyboard on android, and I want to add a button to enable my keyboard and redirect the user to the page of virtual keyboards or to page manage keyboards so that the user can just turn on my keyboard from there, for example similar to the one in "a.i.typekeyboard", kindly see the screenshot. 回答1: Just open input method settings activity using Intent . Intent enableIntent = new Intent(Settings.ACTION_INPUT_METHOD_SETTINGS); enableIntent.setFlags(Intent.FLAG_ACTIVITY_NEW