I have list of file's paths which are not images. I need to load icon of every file as stored in device directory using file paths i hav. I am trying this with glide but it gives load.enguine.Exception. Is there anyway to handle this using glide?
override fun onBindViewHolder(holder: VideoViewHolder, position: Int) {
try {
var a = list[position]
var uri = Uri.parse(a)
Glide.with(activity).load(Uri.fromFile(File(a))).into(holder.icon)
}catch (ex: Exception){
ex.printStackTrace()
}
}