Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/187.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
在onMessage()android中打印整个json数据_Android - Fatal编程技术网

在onMessage()android中打印整个json数据

在onMessage()android中打印整个json数据,android,Android,我想在广播接收器的onMessage中打印整个json数据 { "apiKey": "b3ca79eb-dede-4c58-a163-cdfbfcc081a4", "appKey": "81047fab-715f-47d9-a6cd-cb7e544bb30e", "sendAll": true, "content": { "subject": "Test Lottery", "message": "Notification Msg"

我想在广播接收器的onMessage中打印整个json数据

{
    "apiKey": "b3ca79eb-dede-4c58-a163-cdfbfcc081a4",
    "appKey": "81047fab-715f-47d9-a6cd-cb7e544bb30e",
    "sendAll": true,
    "content": {
        "subject": "Test Lottery",
        "message": "Notification Msg",
        "action": {
            "type": "DEFAULT",
            "data": "url|intent|...",
            "labe": "label"
        },
        "payload": "{'uid':'1','type':'LD'}",
        "sound": "default.caf",
        "badge": "+1"
    }
}

打印在哪里?要在屏幕上显示、查看特定文本视图、查看日志?哪个变量保存要打印的数据,该变量是在哪里创建的?你需要发布更多的infoLog.eTAG,你的jsonString;