I am using Picasso library for images downloading using the following code, I've to load many pictures in a loop by resizing them and transforming to circular. Sometimes images are successfully loaded and sometimes onError method is called instead of onSuccess in Callback. And i get this error SkImageDecoder::Factory returned null Error
. When i uninstall the app then after reinstalling images are loaded successfully mostly. What is the problem exactly and kindly suggest any solution.
Code:
int dp = (int) resources.getDimension(R.dimen.marker_pic_size);
Picasso.with(context).load(profilePic_url)
.transform(new CircleTransform())
.resize(dp, dp)
.into(tempView, new Callback() {
@Override
public void onSuccess() {
Log.d("usm_onSuccess", profilePic_url);
}
@Override
public void onError() {
Log.d("usm_onError", profilePic_url);
}
});