Hi, I have some questions about NotifyDataSetChanged() / requery() :
So, I have a ListView with a custom SimpleCursorAdapter. Everything works fine but when i go to another Intent by the OnItemClick() i got an error because it says that my Cursor in my getView() method is NULL. i found that requery() does a refresh but it is now deprecated... but here the doc says : "Performs the query that created the cursor again, refreshing its contents." First question : - If I must perform the query AGAIN (because you get your cursor by the DBAdapter before calling the constructor), why should the constructor of the adapter get a Cursor ??? I found that NotifyDataSetChanged() should do the same things, and have to be called in an event in the adapter, true ? But in my project, i define my event in my ListActivity and not in the adapter. Should i change it ? I hope my english is not too bad, tell me if i have to explain something a bit more ! Ty, -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

