I've got the following problem: I've got an ArrayList with many values. Now, I want to put some of them into my ListView. The problem is, that this ListView contains an ImageView, which I want to fill with a BLOB field out of my ArrayList. My code looks like this wihout errors:
Using java Syntax Highlighting
- String[] menuCols = new String[] { mDbHelper.KEY_IMAGES, mDbHelper.KEY_NAME, mDbHelper.KEY_TIME };
- int[] to = new int[] { R.id.image, R.id.name, R.id.time };
- MatrixCursor menuCursor = new MatrixCursor(menuCols);
- startManagingCursor(menuCursor);
- for(int i = 0;i < res.length; i++) {
- resInner = (String[]) res[i];
- menuCursor.addRow(new Object[] { R.drawable.icon, resInner[1], resInner[0] });
- }
- SimpleCursorAdapter menuItems = new SimpleCursorAdapter( this, R.layout.row, menuCursor, menuCols, to);
- setListAdapter(menuItems);
Parsed in 0.033 seconds, using GeSHi 1.0.8.4
So, I've got my ListView with the AppIcon at the beginning of each entry. Now I need to load the image out of the BLOB Field, which is "resInner[6]". How do I do this? I already tried to put it in an ImageView somehow...but...well, it just failed ^^°
So, how could I do this?

