Version Issue in glide library to upload an Image Android

北慕城南 提交于 2019-12-12 04:26:12

问题


I have uploaded an image using glide library it's working fine under version below lollypop but it seems that mobile above that version doesn't upload an image because as soon as I upload an image the default image just vanish and replaced with nothing just blank My default image So as after uploading anything from anywhere it just gives blank nothing and in my other mobile whose version is KitKat working absolutely fine

This is glide library version I am using : compile 'com.github.bumptech.glide:glide:3.7.0'

// Loading profile image
        Glide.with(this).load(urlProfileImg)
                .crossFade()
                .thumbnail(0.5f)
                .bitmapTransform(new CircleTransform(this))
                .diskCacheStrategy(DiskCacheStrategy.ALL)
                .into(imgProfile);

回答1:


This is caused maybe because storage permission need to be handled at runtime. In my Case I Have to Handle WRITE_EXTERNAL_STORAGE permission.



来源:https://stackoverflow.com/questions/41059922/version-issue-in-glide-library-to-upload-an-image-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!