SecurityException when downloading Images with the Universal-Image-Downloader

前端 未结 3 831
悲&欢浪女
悲&欢浪女 2021-01-24 16:13

On my application I used universal image downloader BaseImageDownloader class for syncronious loading contents of gallery.For the same content from Imageloader.getInstance().loa

相关标签:
3条回答
  • 2021-01-24 16:24

    This is not a bug of UIL see here. According to this question you should load the image in internal storage on first loading and after that read the image from there.

    0 讨论(0)
  • 2021-01-24 16:33

    I added permission to mainfest and it worked. But I dont know How UIL makes without that??

    <uses-permission android:name="com.google.android.gallery3d.permission.GALLERY_PROVIDER"/>
    
    0 讨论(0)
  • 2021-01-24 16:40

    Please add following permissoions to your mainfest.

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    
    <uses-permission android:name="android.permission.INTERNET"></uses-permission>
    

    Also Please have a look at

    How to grant temporary access to custom content provider using FLAG_GRANT_READ_URI_PERMISSION

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