I am trying to change Cursor
in CursorAdapter
this way:
Cursor newCursor = compiledStatement.getCursor();
startManagingCursor(newCursor);
adapter.changeCursor(newCursor);
Unfortunatelly I get this exception:
java.lang.IllegalStateException: attempt to re-open an already-closed object:
android.database.sqlite.SQLiteQuery
According to other topics, it should be possible to change content of CursorAdapter without creating new one.