CursorAdapter notifyDataSetChanged doesn't work? What am I doing wrong?

by Moto » Fri, 02 Jul 2010 10:41:14 GMT

Sponsored Links
 Hi I'm trying to clean up some code and now I'm determined to get this
seemless ListView updating working...

I want my ListView to be updated when I call notifyDataSetChanged()
but nothing happens... I'm also passing the autoRequery flag to true
when creating my CursorAdapter.

Cursor c = FavoritesHandler.getCategoryFavorites(getSQLiteInstance(),

Any help is greatly appreciated!


Other Threads

1. Market comment bug

Comments on the first page for an app (which just shows the most
recent three comments) are out of sync with the "read all comments"
page.  The "read all comments" page reflects recent comments made
which are not shown at all on the app's main page with the most recent
three comments.  This is still true several hours after the comment
has been written.

2. What is the correct way to refresh UI when I use android:configChanges="keyboardHidden|orientation"

If you actually have resources that change due to these states, you really
should consider letting the normal destroy/recreate behavior execute.
Otherwise, you will just need to poke through your UI, reloading and
resetting resources that may have changed.  There is no simple answer that
can be given about what to do, because it depends entirely on what you need
to have change (and you haven't said anything here about what you actually
need to change).

Dianne Hackborn
Android framework engineer

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.



4. What's the proper way to share data between lite and pro versions of the same app?

5. c++ on android

6. How to launch a standard application in adb shell

7. How to use Eclipse to debug x86 target?