Ok, after some time it turned out that it was my bug due to some old code.
Anyway if you call notifyDataSetChanged() from the main thread it will update the view If you do so from a background thread it will throw an exception. If you are not getting an exception then something is not connected as it should (like in my case above) If you are trying to load data in bg thread here is a usefull howto: http://developer.android.com/guide/appendix/faq/commontasks.html#threading regards On Aug 5, 6:16 pm, pmilosev <[email protected]> wrote: > I have a similar problem: > > I have BaseAdapter and a provider class that loads in background. > When loading is finished I call notifyDatasetChanged/ > notifyDataSetInvalidate > but the view does not update. > > I guess there is some bug in the SDK, but the strange thing is there > is nothing similar > reported so far. > > any hint ? > > On Jun 12, 11:42 am, sebster <[email protected]> wrote: > > > Hi, > > > I have a ResourceCursorTreeAdapter which queries data from my > > database. > > > When I change the underlying data (i.e., delete a group), and then do > > myAdapter.notifyDataSetChanged() the screen does not update. However > > when I first do myAdapter.getCursor().requery(), the screen *does* > > update. > > > Anybody know why I have to manually requery? What is the proper way to > > edit the database (i.e, delete items, rename items, etc), and have the > > view updated in response? > > > Regards, > > Sebastiaan > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

