The constructor SimpleCursorAdapter(MyProgram, int, Cursor, int) is undefined

Posted by dweebsonduty on Stack Overflow See other posts from Stack Overflow or by dweebsonduty
Published on 2010-06-02T00:44:35Z Indexed on 2010/06/02 0:53 UTC
Read the original article Hit count: 259

Filed under:
|

Keep getting "The constructor SimpleCursorAdapter(MyProgram, int, Cursor, int) is undefined" and am not sure why. Here is my code.

  Cursor c = mDbHelper.getAllTypes();
   startManagingCursor(c);
  SimpleCursorAdapter notes = new SimpleCursorAdapter(this, R.layout.list_item1, c, R.id.text1);
      setListAdapter(notes);

Any ideas?

© Stack Overflow or respective owner

Related posts about android

Related posts about cursor