File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Android and the fly likes notifyDataSetChanged() causes application to crash Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of RabbitMQ in Depth this week in the Open Source forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "notifyDataSetChanged() causes application to crash" Watch "notifyDataSetChanged() causes application to crash" New topic

notifyDataSetChanged() causes application to crash

Sarah Ali

Joined: Mar 09, 2012
Posts: 2
Hi All
I'm trying to refresh a list activity when activity resumes after data has changed
my class extends ListActivity
and here is what I'm using

which causes application to crash and I'm unable to see reason in logcat . any ideas please
Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3479

I might be wrong but I think invalidating views should be called after notifying. Try this and let us know.
I agree. Here's the link:
subject: notifyDataSetChanged() causes application to crash