Thank you Sir, after calling requery() view is updated succesfully.
But still want to know why notifyDataSetChanged() not work.

On Dec 10, 6:26 pm, Mark Murphy <mmur...@commonsware.com> wrote:
> In your case, call requery() on the Cursor. The SimpleCursorAdapter
> and whatever it is attached to (e.g., ListView) will be updated
> automatically.
>
> On Fri, Dec 10, 2010 at 6:24 AM, pramod.deore <deore.pramo...@gmail.com> 
> wrote:
> > Hi I am reading data from database and displaying it in list. But this
> > list is not update instantly so I had used SimpleCursorAdapter. But
> > still it is not updated instantly. In documents I read that
> > notifyDataSetChanged() is used for this pupose.But when I write this
> > in my code still list is not  updated . I want to know how to use this
> > method?
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android App Developer Books:http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to