Shd
Shd

Reputation: 7

How to Use Keyboard service as an app?

I know that keyboard is a service but i want to show it like an app on my desktop just like any other app i'm using sample softkeyboard code as a reference

Any Idea

Upvotes: 0

Views: 1171

Answers (2)

Krishna Prasad
Krishna Prasad

Reputation: 691

You might need to enable the keyboard on the phones keyboard settings after installing your apk.

  • Settings > Language and Keyboard
  • Select your keyboard (maybe un-check the default Android keyboard as well)

see here for guide!

Upvotes: 0

Timbertoes
Timbertoes

Reputation: 81

I'm not sure if I understand your question correctly, but perhaps this will help. You want to show the 'keyboard like an app' on your desktop? Does this mean that you want an icon to click on that opens the soft keyboard? If so, perhaps the following code may be of use to you. This will simply display the soft keyboard.

InputMethodManager inputMgr = (InputMethodManager)mContext.getSystemService(Context.INPUT_METHOD_SERVICE);
inputMgr.toggleSoftInput(0, 0);

More info on this approach here.

Upvotes: 1

Related Questions