在onMessage()android中打印整个json数据
我想在广播接收器的onMessage中打印整个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"
{
"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;