我正在使用com.nostra13.universalimageloader将远程图像加载到我的应用中,但在某些图片中显示此错误:
11-10 14:27:39.631: E/ImageLoader(9207): Cannot reset
11-10 14:27:39.631: E/ImageLoader(9207): java.io.IOException: Cannot reset
11-10 14:27:39.631: E/ImageLoader(9207): at com.nostra13.universalimageloader.core.assist.MarkableInputStream.reset(MarkableInputStream.java:97)
11-10 14:27:39.631: E/ImageLoader(9207): at com.nostra13.universalimageloader.core.decode.BaseImageDecoder.decode(BaseImageDecoder.java:78)
11-10 14:27:39.631: E/ImageLoader(9207): at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.downloadSizedImage(LoadAndDisplayImageTask.java:336)
11-10 14:27:39.631: E/ImageLoader(9207): at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.tryCacheImageOnDisc(LoadAndDisplayImageTask.java:317)
11-10 14:27:39.631: E/ImageLoader(9207): at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.tryLoadBitmap(LoadAndDisplayImageTask.java:258)
11-10 14:27:39.631: E/ImageLoader(9207): at com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.run(LoadAndDisplayImageTask.java:129)
11-10 14:27:39.631: E/ImageLoader(9207): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
11-10 14:27:39.631: E/ImageLoader(9207): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
11-10 14:27:39.631: E/ImageLoader(9207): at java.lang.Thread.run(Thread.java:856)
有人知道什么是错的吗?
这是我在adpter课程中的代码:
public View getView(int position, View convertView, ViewGroup parent) {
View vi = convertView;
if (convertView == null)
vi = inflater.inflate(R.layout.item_list_img_novo, null);
TextView titulo_rs = (TextView) vi.findViewById(R.id.titulo_cp_rs);
TextView id_rs = (TextView) vi.findViewById(R.id.pid);
ImageView thumb_image = (ImageView) vi.findViewById(R.id.image_rs);
HashMap<String, String> rs_listar_cp = new HashMap<String, String>();
rs_listar_cp = data.get(position);
titulo_rs.setText(rs_listar_cp.get(ListaCupons.TAG_TITULO_CP_RS));
id_rs.setText(rs_listar_cp.get(ListaCupons.TAG_ID_RS));
imageLoader.displayImage(
rs_listar_cp.get(ListaCupons.TAG_LINK_IMAGE_RS), thumb_image,
options);
return vi;
}