Map<String, String> httpParams = new HashMap<>(); httpParams.put("devicecode", "343257687798790"); com.tangzy.myokhttp.async.bean.ResponseResult responseResult = AsyncOkHttpManager.asyncRequest("https://www.baidu.com" ,httpParams, false); String status = responseResult.getStatus(); Response response = responseResult.getResponse(); textView1.setText(response.message()); responseResult.getErrorMsg();
非常简单的OKhttp封装工具类
最新推荐文章于 2018-08-29 14:20:33 发布