2

I am looking for a way to programmatically detect if gboard (google's keyboard) is installed on the android device and use it as the default input method for my app.

John Fang
  • 21
  • 1
  • Will the application be running on rooted device? Can you try checking these links... https://stackoverflow.com/questions/11036435/switch-keyboard-profile-programmatically and https://stackoverflow.com/questions/38122702/android-change-keyboard-programmatically – Soumya Aug 29 '17 at 19:30
  • @Soumya, Thank for pointing out the post. It is very close to what I'm looking for. I like to be able to detect if gboard is installed and load it programmatically or notify user that gboard is recommend for use with the app. The solution to that post was to trigger the keyboard selection option, which is not quite what I'm looking form. – John Fang Aug 29 '17 at 20:05
  • @Soumya, https://stackoverflow.com/questions/38122702/android-change-keyboard-programmatically is the anwer, however I need a solution that doesn't involve rooted device. :( – John Fang Aug 29 '17 at 20:09
  • I think it is not possible on non-rooted devices due to security concerns. The most we can do is prompt and allow the user to choose to Gkeyboard. – Soumya Aug 29 '17 at 20:27

0 Answers0