Hello.
For honeycomb I'm refectoring my app to use the new Loader classes 
introduced here:

http://developer.android.com/guide/topics/fundamentals/loaders.html

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!

Can anybody help me?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to