标签:http ack activity response ESS nfa public main ror
@OnClick(R.id.download) public void onViewClicked() { String path = mEt.getText().toString().trim(); HttpUtils httpUtils = new HttpUtils(); httpUtils.download(path, getFileName(path), true, new RequestCallBack<File>() { @Override public void onSuccess(ResponseInfo<File> responseInfo) { Toast.makeText(MainActivity.this, "下载成功", Toast.LENGTH_SHORT).show(); } @Override public void onLoading(long total, long current, boolean isUploading) { mPb.setMax((int) total); mPb.setProgress((int) current); } @Override public void onFailure(HttpException error, String msg) { } }); }
标签:http ack activity response ESS nfa public main ror
原文地址:https://www.cnblogs.com/nangongyibin/p/10229071.html