【XUtils3下载文件】public Callback.Cancelable DonwloadFile(String url, File downloadFile, DownloadCallback callback) {
RequestParams params = new RequestParams(url);
params.setAutoRename(false);
params.setAutoResume(true);
params.setMaxRetryCount(3);
params.setCancelFast(true);
params.setSaveFilePath(downloadFile.getAbsolutePath());
Callback.Cancelable cancelable = x.http().get(params, callback);
return cancelable;
}
public class DownloadCallback implements Callback.CommonCallback