add custom image as Emoji in android

前端 未结 1 446
梦毁少年i
梦毁少年i 2021-02-10 00:50

how to add custom image as emoji in android InputMethodService. i have tried using

ImageGetter imageGetter = new ImageGetter() {
                public Drawable         


        
1条回答
  •  温柔的废话
    2021-02-10 01:29

    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.

    1. Look at Android's application stack.
    2. Find the Application on top.
    3. Pipe the bitmap via intent.putExtra(Intent.EXTRA_STREAM, BitmapUriLocation) into the application;

    This is how the app referenced here : https://play.google.com/store/apps/details?id=com.plantpurple.emojidom most likely did things.

    0 讨论(0)
提交回复
热议问题