question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does Android-Universal-Image-Loader support Asset folder?

See original GitHub issue

Hi nostra13,

I was going to use this lib in my project, but after some searches, I couldn’t figure out how to use this lib to load images from assets folder, even when I used "file:///android_asset/… , it didn’t work.

        mImageLoader.displayImage("file:///android_asset/" + path, 
                iv, Const.displayImageOptions, 
                new SimpleImageLoadingListener()
        {
            @Override
            public void onLoadingComplete(Bitmap loadedImage) {
                Animation anim = AnimationUtils
                        .loadAnimation(mContext, R.anim.fade_in);
                iv.setAnimation(anim);
                anim.start();
            }
        }); 

If it’s possible, could you provide me some code? or even if I have to customized some code myself, please let me know how to do it.

Thanks in advance and sorry for my bad English 😃

Issue Analytics

  • State:closed
  • Created 11 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
nostra13commented, Feb 26, 2015

assets://... scheme is supported out of box now

0reactions
zddcommented, Aug 17, 2015

Can I use subfolders in assets folder? like this assets://images/test.png

Read more comments on GitHub >

github_iconTop Results From Across the Web

Images not loading from assets folder using Universal Image ...
This is my configuration: //Get the imageloader. ImageLoader imageLoader = ImageLoader.getInstance(); //Create image options.
Read more >
Loading Large Bitmaps Efficiently - Android Developers
You can use these libraries in your app to load images in the most optimized manner. We recommend the Glide library, which loads...
Read more >
imoblife / Android-Universal-Image-Loader Download - JitPack
This project aims to provide a reusable instrument for asynchronous image loading, caching and displaying. It is originally based on Fedor Vlasov's project...
Read more >
How to Use Glide Image Loader Library in Android Apps?
But it is not kind of a problem since Android Support Library v4 is ... error placeholder image if it was unable to...
Read more >
Simple File Browser [Open Source] | Page 2 - Unity Forum
Are there any way to get only the android external path from your script ... UI objects but file browser does support world...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found