how to add custom image as emoji in android InputMethodService. i have tried using
ImageGetter imageGetter = new ImageGetter() {
public Drawable
You're trying to send an image to twitter/whatsapp, not an emoji. There is a difference.
Emoji literally means "picture to character" and are dependent on the phone's character set that the receiver is using. Even if you replaced the images associated with your own phone's emojis, the person you are sending the emoji to would only be able to see their own keysets of emojis. This is not what you want.
Images have nothing to do with phone keysets and will appear roughly the same no matter which phones they are sent to. You need to pipe your image to an intent associated with the application the user is currently focused on.
This is how the app referenced here : https://play.google.com/store/apps/details?id=com.plantpurple.emojidom most likely did things.