Question

I have created a custom softkeyboard. It works for all the application throughout.

Is it possible to create a softkeyboard so that it can work for a particular application not for all the application.

Any ideas.

Thanks in advance

Was it helpful?

Solution

Here is good explanation of different ways to achieve this.

The Android Nethack application has a complete and clear source code example of how to create a custom keyboard for an application, how to display it on screen and how to define multiple keyboard layouts. It contains pretty much everything you need to know.

It is by far the best example I have seen.

http://code.google.com/p/nethack-android/

OTHER TIPS

Umm, I guess you could integrate your own soft keyboard within your application - and never show the real one. Much work though, but I guess it could be done.

However you cannot force a certain soft keyboard to a certain application, but lots of keyboards support different styles using this in the XML:

android:inputType=""

Perhaps one of those would suit you?

For example if you'd like a keyboard fit for input in the form of email-addresses:

android:inputType="textWebEmailAddress"

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top