// 请求网络数据---Json
private void getData(final int i, String path) {
HttpUtils httpUtils = new HttpUtils();
httpUtils.configCurrentHttpCacheExpiry(0);
httpUtils.send(HttpMethod.GET, path, new RequestCallBack<String>() {
@Override
public void onFailure(HttpException arg0, String arg1) {
}
@Override
public void onSuccess(ResponseInfo<String> arg0) {
String result = arg0.result;
Gson gson = new Gson();
Bean bean = gson.fromJson(result, Bean.class);
Message msg = Message.obtain();
msg.obj = bean.data;
msg.what = i;
handler.sen
private void getData(final int i, String path) {
HttpUtils httpUtils = new HttpUtils();
httpUtils.configCurrentHttpCacheExpiry(0);
httpUtils.send(HttpMethod.GET, path, new RequestCallBack<String>() {
@Override
public void onFailure(HttpException arg0, String arg1) {
}
@Override
public void onSuccess(ResponseInfo<String> arg0) {
String result = arg0.result;
Gson gson = new Gson();
Bean bean = gson.fromJson(result, Bean.class);
Message msg = Message.obtain();
msg.obj = bean.data;
msg.what = i;
handler.sen