Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/207.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
有没有办法在android上使用json格式的表情符号?_Android_Emoji_Emoticons - Fatal编程技术网

有没有办法在android上使用json格式的表情符号?

有没有办法在android上使用json格式的表情符号?,android,emoji,emoticons,Android,Emoji,Emoticons,我想从表情符号数据源站点接收表情符号作为json文件,并在android中显示它。你是怎么做到的?json格式的文件是: [ { "name": "HASH KEY", "unified": "0023-FE0F-20E3", "non_qualified": "0023-20E3", "doco

我想从表情符号数据源站点接收表情符号作为json文件,并在android中显示它。你是怎么做到的?json格式的文件是:

[
    {
        "name": "HASH KEY",
        "unified": "0023-FE0F-20E3",
        "non_qualified": "0023-20E3",
        "docomo": "E6E0",
        "au": "EB84",
        "softbank": "E210",
        "google": "FE82C",
        "image": "0023-fe0f-20e3.png",
        "sheet_x": 0,
        "sheet_y": 0,
        "short_name": "hash",
        "short_names": [
            "hash"
        ],
        "text": null,
        "texts": null,
        "category": "Symbols",
        "sort_order": 132,
        "added_in": "0.0",
        "has_img_apple": true,
        "has_img_google": true,
        "has_img_twitter": true,
        "has_img_facebook": false
    },
    {
        "name": null,
        "unified": "002A-FE0F-20E3",
        "non_qualified": "002A-20E3",
        "docomo": null,
        "au": null,
        "softbank": null,
        "google": null,
        "image": "002a-fe0f-20e3.png",
        "sheet_x": 0,
        "sheet_y": 1,
        "short_name": "keycap_star",
        "short_names": [
            "keycap_star"
        ],
        "text": null,
        "texts": null,
        "category": "Symbols",
        "sort_order": 133,
        "added_in": "0.0",
        "has_img_apple": true,
        "has_img_google": true,
        "has_img_twitter": true,
        "has_img_facebook": false
    },
    ...
]
链接在这里:。 我尝试了以下方法,但没有成功

textView.text = String(Character.toChars(0x002AFE0F20E3))

我想向用户展示Android设备上所有可用的表情符号。

哦,我解决了。只需在json文件
google
名称代码中使用即可。

我不知道这是否可以作为解决方案,但我做了一些不同的事情,希望在这里分享,让大家都知道

我从Android应用程序创建的内容使用以下代码进行编码。从服务器获取数据时,我使用相同的方法对其进行解码。内容也包括表情符号,它们在所有设备中都完美地出现,而不知道表情符号的名称