问题描述
- android网络通讯Xutils问题
-
String url = getResources().getString(R.string.url);
RequestParams params = new RequestParams();
params.addBodyParameter("cmd", "301");
HttpUtils httpUtils = new HttpUtils();
httpUtils.send(HttpMethod.POST, url, params,
new RequestCallBack() { //为什么会直接跳过里面的重写方法?网络权限也加了啊
@Override
public void onFailure(HttpException arg0, String arg1) {
}
@Override
public void onSuccess(ResponseInfo arg0) {
}
}
时间: 2024-12-27 19:53:21