Load image from SD card using Glide

后端 未结 4 986
执念已碎
执念已碎 2020-12-06 11:27

I\'ve been trying and searching for an answer for the past 5 hours. I\'m storing image from google plus to local folder and using Glide library to load the image into imagev

4条回答
  •  醉梦人生
    2020-12-06 12:00

    This Worked for me as long as you Add permissions.

    File file = new File(Environment.getExternalStorageDirectory()+File.separator+"xxx/xxx/"+imgName.jpg);
                            Uri imageUri = Uri.fromFile(file);
                            Glide.with(this).load(imageUri).into(tvBestSellingProductImage3);
    

提交回复
热议问题