This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android 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: 3476

I might be wrong but I think invalidating views should be called after notifying. Try this and let us know.
 
Consider Paul's rocket mass heater.
 
subject: notifyDataSetChanged() causes application to crash
 
Similar Threads
[2010-08-16 10:31:07 - HelloDatePicker] New package not yet registered with the system
Detecting Crashes in JBoss 4.0.2
placing \" in the textfield causes error 500
JTree Cell Renderer CPU usage
Android search and suggestion provider affect parent activity lifecycle under certain conditions