Reputation: 3127
In my app, some of images are protected by authorization layer.
Downloading process is:
The problems are:
Is there any way to resolve it in some simple way?
Upvotes: 0
Views: 129
Reputation: 12407
You should implement your own ImageDownloader
(it's better to extend BaseImageDownloader
) which will handle this case. It should check if auth is required and it is then it makes re-query.
Upvotes: 2
Reputation: 14828
loader.displayImage(beans.get(position).getImagePath(), holder.imageView, options,
new ImageLoadingListener() {
@Override
public void onLoadingStarted(String imageUri, View view) {
}
@Override
public void onLoadingFailed(String imageUri, View view, FailReason failReason) {
//try again here with another URI.
}
@Override
public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {
}
@Override
public void onLoadingCancelled(String imageUri, View view) {
// TODO Auto-generated method stub
}
});
Upvotes: 0