This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Android and the fly likes notifyDataSetChanged() causes application to crash Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Mobile » Android
Reply 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: 1
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: 3359

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
 
Similar Threads
Detecting Crashes in JBoss 4.0.2
[2010-08-16 10:31:07 - HelloDatePicker] New package not yet registered with the system
placing \" in the textfield causes error 500
JTree Cell Renderer CPU usage
Android search and suggestion provider affect parent activity lifecycle under certain conditions