File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "notifyDataSetChanged() causes application to crash" Watch "notifyDataSetChanged() causes application to crash" New topic
Author

notifyDataSetChanged() causes application to crash

Sarah Ali
Greenhorn

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
Bartender

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: http://aspose.com/file-tools
 
subject: notifyDataSetChanged() causes application to crash