FileDownloader
FileDownloader copied to clipboard
总是提示FileDownloader.DownloadServiceNotConnectedHelper: request get the status for the task[-1820460891] in the download service, but the download service isn't connected yet.
一直弹出这个弹窗,并且会打印下面的错误信息,我已经调用了bindService
I/BufferQueueProducer: SurfaceTexture-1-31736-7 queueBuffer: slot 3 is dropped, handle=0xc96ee000
2020-10-12 19:03:22.949 31736-31736/com.sathio.com W/FileDownloader.DownloadServiceNotConnectedHelper: request get the status for the task[-1820460891] in the download service, but the download service isn't connected yet.
You can use FileDownloader#isServiceConnected() to check whether the service has been connected,
besides you can use following functions easier to control your code invoke after the service has been connected:
1. FileDownloader#bindService(Runnable)
2. FileDownloader#insureServiceBind()
3. FileDownloader#insureServiceBindAsync()