I am trying to change Cursor in CursorAdapter as follows:
Cursor newCursor = compiledStatement.getCursor(); startManagingCursor(newCursor); adapter.changeCursor(newCursor);
Unfortunately, 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 the contents of the CursorAdapter without creating a new one.
source share