How to programmatically hide/disable emoticons on Android soft keyboard

(For completeness sake)

This solution is for people who need to have textview without the smiley on their soft keyboard. @Adrian's solution, to use email address type, works but it will show unnecessary '@' and '.com' buttons on your keyboard. I tried several combinations of InputType and the best solution IMHO is this:

mTextView.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD);

Original Keyboard:

Resulting keyboard:


This worked for me on Android 4.4.2

android:inputType="textEmailAddress|textMultiLine"

I found something in "Disabling smiley key on keyboards with the stock messaging app in ICS".

You need to remove the textLongMessage option from the inputType.

You will still have the ":-)" button on most keyboards, but not the emoji.