我一直在嘗試加載我的圖像網址到第一個必須下載的列表視圖可以有人請幫助我。顯示多個圖像使用他們的URL與JSON列表視圖
HashMap<String, String> map = new HashMap<String, String>();
map.put("id", String.valueOf(i));
map.put("name", "House name:" + json_data.getString("name"));
map.put("address", "Adress: " + json_data.getString("address"));
URL newurl = new URL(json_data.getString("imageUrl"));
itmap bitmap = BitmapFactory.decodeStream((InputStream) new URL(result).getContent());
ImageView imagy = (ImageView)findViewById(R.id.image);
imagy.setImageBitmap(bitmap);
map.put("img",bitmap);//error is here says convert bitmap to type string
mylist.add(map);
錯誤還挺說,你的問題是什麼:你試圖把一個'Bitmap'對象到'的HashMap'對象。 –
fayerth
2012-03-08 05:44:45