Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

change the default android keyboard using ADB or java code

I am building a custom application that uses specific keyboard so when the user run the application, the default keyboard should be changed to my specific keyboard which name is hackers keyboard , How can I do that using java code or by calling adb command from java code , my device is rooted , again this is specific app and the company that I developing for require that.

like image 844
Mohammed Subhi Sheikh Quroush Avatar asked Mar 06 '13 17:03

Mohammed Subhi Sheikh Quroush


People also ask

How do I change my default mobile keyboard?

Tap the gear icon to open the Settings. Next, go to “General Management.” Select “Keyboard List and Default.” At the top of the screen, tap “Default Keyboard” and choose the keyboard app you'd like to use.

How do I change the keyboard on my Android stock?

To change your keyboard on Android, go to Settings > System settings > Keyboard and input method > Current keyboard and choose the keyboard (the steps might differ a little depending on your phone). You can download third-party keyboards from the Google Play Store.


1 Answers

You can use the ime command to set input method.

$ adb shell ime
usage: ime list [-a] [-s]
       ime enable ID
       ime disable ID
       ime set ID
like image 71
auselen Avatar answered Oct 07 '22 20:10

auselen