int tmp_index = 0;
final List < Map < String, Object >> data = new ArrayList< Map< String, Object >>();
for (int i = 0; i < camNameArr.length; i++) {
Map< String, Object> item = new HashMap< String, Object>();
item.put("name", camNameArr[i]);
//----get photo from project
Log.e("camIDArr[i] " +i,""+camIDArr[i]);
Log.e("*tmp_index",""+tmp_index);
item.put("image", mPics[i]);
// // ----get photo from sd card
// String photoName = "main" + (i + 1) + ".jpg";
// // new DownloadImagesToSdCard("http://spaceflightnow.com/news/n0211/04soho/sun.jpg",photoName, savePhotoPath);
// item.put("image", savePhotoPath + photoName);
data.add(item);
}
2015年5月10日 星期日
[Android] two ways to get photo in the List View
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言