When downloading pictures from the Internet using the picasso library, for some time the pictures are loaded as they should, but at some point picasso stops working and instead of the unloaded pictures there are still stubs. What can be the reason? My adapter:
public class CustomListAdapter extends BaseAdapter { Context ctx; LayoutInflater lInflater; ArrayList<Item> objects; CustomListAdapter(Context context, ArrayList<Item> items) { ctx = context; objects = items; lInflater = (LayoutInflater) ctx .getSystemService(Context.LAYOUT_INFLATER_SERVICE); } @Override public int getCount() { return objects.size(); } @Override public Object getItem(int position) { return objects.get(position); } @Override public long getItemId(int position) { return position; } @Override public View getView(int position, View convertView, ViewGroup parent) { View view = convertView; if (view == null) { view = lInflater.inflate(R.layout.item, parent, false); } Item p = getProduct(position); ((TextView) view.findViewById( R.id.textView4)).setText(p.price); ((TextView) view.findViewById(R.id.textView6)).setText(p.brand); ((TextView) view.findViewById(R.id.textView5)).setText(p.model); ImageView img= view.findViewById(R.id.imageView1); Picasso.with(ctx).load(p.image).fit().into(img); return view; } Item getProduct(int position) { return ((Item) getItem(position)); } }