Advertisement

AndroidStudio组织json URL中出现反斜杠问题记录

阅读量:

日常开发过程中常见问题的整理与记录:

在这里插入图片描述
复制代码
    {"szDevId":"","isMainStream":1,"szStreamId":"","szGuid":"1","szAccessToken":"","iProperty":5,"szPortal":"https:\/\/dev-smartbuildingcs.-------.cn:443","szPublishToken":"1","isEnableAudio":1,"isEnable":1}
    
    
      
    

安卓平台的代码实现:

复制代码
    HashMap<String, Object> rtmpMap = new HashMap<String, Object>();
    rtmpMap.put("isEnable", 1);
    rtmpMap.put("iProperty", 5);
    rtmpMap.put("isEnableAudio", 1);
    rtmpMap.put("szStreamId", "");
    rtmpMap.p

全部评论 (0)

还没有任何评论哟~