downloading multiple files using downloadmanager class in android?

后端 未结 2 1370
遇见更好的自我
遇见更好的自我 2021-01-29 15:06

i want to download multiple files using downloadmanager class in android i have 100-200 image file but when i try to download the files app crashes but the download starts? how

相关标签:
2条回答
  • 2021-01-29 15:45

    try adding this permission to your AndroidManifest:

    <uses-permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION" />
    
    0 讨论(0)
  • 2021-01-29 15:56

    Can you show us the code com.example.newpicker.AnotherActivity class, because it seems that the error comes from this class.

    then the error is a IndexOutOfBoundsException, so have you tried with less image eg 10 or 20? and run later when the first 10 are recovered?

    0 讨论(0)
提交回复
热议问题