问题是图像是从表中正确加载的,但是logcat仍然显示错误,我做错了什么?
public View getView(int position, View convertView, ViewGroup parent) {
View v = super.getView(position, convertView, parent);
ImageView img = (ImageView) v.getTag();
if (img == null) {
img = (ImageView) v.findViewById(R.id.imageOrders);
}
Object url = ((Cursor) getItem(position)).getString(1);
Log.d("PicassaURL",url.toString());
String ol = url.toString();
Picasso.with(v.getContext()).load(ol).placeholder(R.drawable.bay).into(img);
//TextView titletxt= (TextView) v.findViewById(R.id.title);
//titletxt.setTypeface(HelveticaBold);
return v;
}
Logcat
E/BitmapFactory﹕ Unable to decode stream: java.io.FileNotFoundException: /http:/ecx.images-amazon.com/images/I/512IKr3cnVL._SL160_.jpg: open failed: ENOENT (No such file or directory)
I/System.out﹕ resolveUri failed on bad bitmap uri: http://ecx.images-amazon.com/images/I/512IKr3cnVL._SL160_.jpg
D/PICASSA STRING﹕ http://ecx.images-amazon.com/images/I/512IKr3cnVL._SL160_.jpg