I have switched my current project from Picasso to Glide. However, I cannot manage to load an image from the application assets. Is that even possible?
String assetPath = "file:///android_asset/flags/FR.jpg"; Glide.with(getContext()) .load(Uri.parse(assetPath)) .placeholder(missingFlagDrawable) .centerCrop() .crossFade() .into(flag);
I have also tried the load(String) method without success and I don’t see a load method taking for instance an InputStream or a FileDescriptor I could have obtained with the AssetManager class.
That exact same code was working in Picasso.
Glide is working properly in the rest of the app and loading nicely remote images.
As stated in the GitHub issue I had opened at the time I faced that issue.