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
try adding this permission to your AndroidManifest:
<uses-permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION" />
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?