Plus Better Download — Xilog
@Override public void onResponse(Call call, Response response) throws IOException { // Write response to file try (InputStream in = response.body().byteStream(); FileOutputStream out = new FileOutputStream(destination)) {
Turbo Download
public void downloadFile(String url, File destination) { Request request = new Request.Builder() .url(url) .build(); xilog plus better download