how to set my custom downloader? I cannot see a Builder method to change the downloader class.
I want use Google HTTP Client library and I have a subclass ready, 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 make UIL to use?
Thanks.
ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(context)
...
.imageDownloader(new GoogleHttpDownloader())
...
.build();
ImageLoader.getInstance().init(config);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With