How to refresh the ListView out of the CursorAdapter?

Beat me to it... I guess if you're inside your own Adapter classes code though, you'd just use notifyDataSetChanged() or this. NotifyDataSetChanged() though. – Maximus Apr 17 at 19:38 Thnak you, but unfortunatly none of that worked correctly.

They just have no effect... Anything I should pay attention to regarding it? I really have to show the correct data in the ListView – andi Apr 18 at 10:03 As I understand it, I should have to use requery() because I changed something in the database and the cursor holds the outdated data. But everytime I requery, the list is completely empty - not even the ImageViews are displyed... – andi Apr 18 at 12:27 having the same issue as you, any possibility you found the solution?

– angrymonkey Aug 8 at 15:49.

Sorry for the second account, I didn't remember the login for the old one. I finally got it and wanted to share it with you: In the MyCursorAdapter in the method called by the onClick - in my case it is changeTaskConditBoolValue(...) I have to call: this. ChangeCursor(db.

FetchAllTasks(myParameters)); This gets a new cursor by my Database-Class and replaces its own old one with the new one. Found no other way to change the cursor from inside the CursorAdapter. Hope, that helps others, too.

The ListView is refreshed because of the method notifyDataSetChanged(). Refresh the listview.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions