android-priority-jobqueue

Android Priority-Job-Queue keep retrying until success

强颜欢笑 提交于 2019-12-08 11:39:28
问题 So I have to download a bunch of image files from a server and I'm using Priority-Job-Queue. So far seems to works fine and I'm using a simple AsyncTask for the downloading part. Since I want the images to be downloaded no matter what I only added RetryConstraint.RETRY on shouldReRunOnThrowable() callback. I have also added android.permission.RECEIVE_BOOT_COMPLETED permission on Manifest.xml Is this the right/best way so if there's any kind of problem and some images aren't downloaded due to