when I use Rx2AndroidNetworking to download a 88M pdf file, it crashed.
here my code:
@Override
public Observable<String> downloadFile(String fileUrl, String dirPath, String fileName) {
return Rx2AndroidNetworking.download(fileUrl, dirPath, fileName)
.build()
.getDownloadObservable();
}
and this is the stacktrace:

what should i do?
Ok, Let me come up with a solution.
It was also too much laggy when I tried to download a file only 20mb in size.
I tried 30mb file, it's working great, so closing the issue.
@amitshekhariitbhu I'm getting some of this error again. Downloading a 50 MB file makes the whole application laggy and inaccessible.
Code :
````
AndroidNetworking
.download(link, Environment.getExternalStorageDirectory() + "/YouP3/", title + "." + fileExtension)
.setPriority(Priority.MEDIUM)
.setTag(downloadId)
.setUserAgent("Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36")
.build()
.setDownloadProgressListener(new DownloadProgressListener() {
@Override
public void onProgress(long downloaded, long total) {
new NotifyCall(mContext, "Download Task Running", "Downloading :" + title).callProgress((int) total / 10000, (int) downloaded / 10000);
}
}).................
````
But download is done perfectly
@ExploiTR can u tell me the link to try.
@amitshekhariitbhu It's dynamic because I'm loading youtube in WebView then, obtaining URL by intercepting media requests. It is like *.googlevideo.com
Most helpful comment
I tried 30mb file, it's working great, so closing the issue.