Android : How to programmatically open the soft keyboard in Emoji View

Relm picture Relm · Oct 13, 2016 · Viewed 9.4k times · Source

As I see, a way to show default emojis on android is by using the following on an input text.

android:inputType="textMultiLine|textShortMessage"

When I search, I can't find a way to do this through Java. What I want to make happen is that when the soft keyboard is open, have the user tab a button to switch between emoji view and normal keyboard view.

Custom Emoji Keyboard.

I've already implemented this, but it would be much better to and lighter to use Emojis already on the device for post kik-kat.

Google does switch between this views.

On Google Allo, pressing the emoji icon inside the editText switch views.

Answer

crgarridos picture crgarridos · Oct 19, 2016

After trying for a while I didn't achieved this goal even injecting a keyevent.

Looking in Google Allo, that looks as a custom implementation. I have switftkey themed keyboard and on KitKat Moto G (1st gen) it's very remarkeable. I tested also on a Marshmallow Moto G (2nd gen) with native keyboard, but contracted, and you can see that isn't the real soft keyboard :

enter image description here

I think there is no way to achieve this without a custom emoji's implementation.