Open Lloyd0577 opened 3 years ago
打开移动数据,但是这张卡是欠费状态,无法连接到网络,设置了15秒超时时间: FileDownloader.setupOnApplicationOnCreate(this) .connectionCreator( FileDownloadUrlConnection.Creator( FileDownloadUrlConnection.Configuration() .connectTimeout(15_000) // set connection timeout. .readTimeout(15_000) // set read timeout. ) ) .commit()
FileDownloader.getImpl().create(fileUrl) .setPath(audioPath) .setListener(downloadlistener) .start()
进行下载时过了15秒没有error回调,有的时候过了很久才会回调,大部分不会回调
对,不管设置多少秒,永远是90秒回调error。哥们解决没
对,不管设置多少秒,永远是90秒回调error。哥们解决没 还没呢
打开移动数据,但是这张卡是欠费状态,无法连接到网络,设置了15秒超时时间: FileDownloader.setupOnApplicationOnCreate(this) .connectionCreator( FileDownloadUrlConnection.Creator( FileDownloadUrlConnection.Configuration() .connectTimeout(15_000) // set connection timeout. .readTimeout(15_000) // set read timeout. ) ) .commit()
FileDownloader.getImpl().create(fileUrl) .setPath(audioPath) .setListener(downloadlistener) .start()
进行下载时过了15秒没有error回调,有的时候过了很久才会回调,大部分不会回调