GridView に画像を設定するために glide を使用しています。仮想暗号化ディスクを提供する IOcipher という名前のライブラリを使用しているため、info.guardianproject.iocipher.File
代わりにjava.io.file
. しかし、グライドは画像をロードできず、次のようなエラーが表示されます:
E/グライド: クラス com.bumptech.glide.load.engine.GlideException: リソースの読み込みに失敗しました
画像をロードする方法はありますか? 私は多くの異なる方法を試しました:(
file.getPath()
戻ります/data/user/0/com.example.zeinab.amndoorbin/app_vfs/myfiles.db/1502685968291.jpg
Glide.with(mContext)
.load(file.getPath()) // Uri of the picture
.into(imageView);