Images in SimpleCursorAdapter
I'm trying to use a SimpleCursorAdapter with a ViewBinder to get an image from the database and put it into my ListView item view. Here is my code: private void setUpViews() { mNewsView = (ListView) findViewById(R.id.news_list); Cursor cursor = getNews(); SimpleCursorAdapter curAdapter = new SimpleCursorAdapter( getApplicationContext(), R.layout.cursor_item, cursor, new String[] { "title", "content", "image" }, new int[] { R.id.cursor_title, R.id.cursor_content, R.id.news_image }); ViewBinder viewBinder = new ViewBinder() { public boolean setViewValue(View view, Cursor cursor, int columnIndex)