Hello.For honeycomb I'm refectoring my app to use the new Loader classes introduced here:
This example uses a simple ListView with SimpleCursorAdapter. But my app uses a ExpandableListView with SimpleCursorTreeAdapter.
Now the problem is, that I need to call the swapCursor method on the adapter but the SimpleCursorTreeAdapter does not implement this method.
So the example does not work for ExpandableListView:
public void onLoadFinished(Loader<Cursor> loader, Cursor data) {
// Swap the new cursor in. (The framework will take care of closing the
// old cursor once we return.)
mAdapter.swapCursor(data);
}
There is only the method "changeCursor" but this closes the cursor but is wrong!
If there were source code for CursorAdapter#swapCursor available, I could patch it on my own, but I checked out the source code and there is no tag android-3xxx for frameworks/base package.
Can anybody help me?