You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
when a file is downloaded completely and you close app and open again , Fully Downloaded Files are not specifid in the download manager list, only semi downloaded files data can specified
why ThredInfo Table gets clear after file download gets finished ?
how i can handle that a file is completely downloade and on next opening app install it?
The text was updated successfully, but these errors were encountered:
you can fix the problem by add this line in DownloadTaskImpl class: updateDB(mThreadInfo);
inside Run like following:
@Override public void run() { Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND); insertIntoDB(mThreadInfo); try { mStatus = DownloadStatus.STATUS_PROGRESS; executeDownload(); synchronized (mOnDownloadListener) { //add the following line in your run function updateDB(mThreadInfo); mStatus = DownloadStatus.STATUS_COMPLETED; mOnDownloadListener.onDownloadCompleted(); } } catch (DownloadException e) { handleDownloadException(e); } }
Hi
when a file is downloaded completely and you close app and open again , Fully Downloaded Files are not specifid in the download manager list, only semi downloaded files data can specified
why ThredInfo Table gets clear after file download gets finished ?
how i can handle that a file is completely downloade and on next opening app install it?
The text was updated successfully, but these errors were encountered: