I'm trying to include the AXEmoji inside a custom android keyboard / IME. Which is run on a service not activity.
I try to use AXEmojiPopupLayout into keyboard layout, but it's throw Exception because the parameter needed is context from Activity not from service.
this line throw Exception.
parentView = Utils.asActivity(popupLayout.getContext()).findViewById(android.R.id.content);
Can you solve this?
I hope it's can be run on android keyboard.
Thanks in advance.
I'm trying to include the AXEmoji inside a custom android keyboard / IME. Which is run on a service not activity. I try to use AXEmojiPopupLayout into keyboard layout, but it's throw Exception because the parameter needed is context from Activity not from service.
this line throw Exception.
parentView = Utils.asActivity(popupLayout.getContext()).findViewById(android.R.id.content);
Can you solve this? I hope it's can be run on android keyboard. Thanks in advance.