How to install custom bootloader in Universal Image Loader?

How to configure my custom bootloader? I do not see the Builder method to change the loader class.

I want to use the Google HTTP client library, and I have a subclass like this:

import com.nostra13.universalimageloader.core.download.BaseImageDownloader; public class GoogleHttpDownloader extends BaseImageDownloader { //constructors, etc... @Override protected InputStream getStreamFromNetwork(String imageUri, Object extra) throws IOException { //new instancce of client, connect, return stream } } 

But how to force UIL to use?

Thanks.

+7
source share
1 answer
 ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(context) ... .imageDownloader(new GoogleHttpDownloader()) ... .build(); ImageLoader.getInstance().init(config); 
+5
source

All Articles