If you have same requirement in development, this article may help you.
Let’s how to do it in code:
1 | public static InputFilter EMOJI_FILTER = new InputFilter() { |
And you also need to set this filter in the edittext you want to disable Emoji.
1 | editText.setFilters(new InputFilter[]{EMOJI_FILTER}); |
Why it can disable Emoji.
Unicode is a computing industry standard for the consistent encoding, representation, and handling of text expressed in most of the world’s writing systems.
Emoji use area of Unicode with a range of code points from U+1F604 to U+1F539.
And Character.SURROGATE
reserved the range is over the Emoji’s.
If you find a better method, you also can contact with me