BaseAdapter and Picasso issue
I am having a problem loading images in ListView from a server with Picasso. I have a BaseAdapter that is used to fill my ListView. In this ListView some items have an image and some not. in this method: public View getView(final int position, View convertView, ViewGroup parent) { I do: ... //context = Activity context; //context1 = Context context1; context1 = context.getApplicationContext(); if (!photo[position].equals("")) { String stringurl = "http://www.blablabla.it/img/"+photo[position]+".jpg"; Picasso.with(context1) .load(stringurl) .placeholder(R.drawable.white) .into(holder.imageD); }