Wednesday, August 4, 2010

Re: [android-developers] what is the difference between notifyDataSetChanged() and notifyDataSetInvalidated() ?

notifyDataSetInvalidated() means that the data inside the adapter is
no longer valid. This will cause ListView to stop populating. There
should seldom be any reason to use it.

On Wed, Aug 4, 2010 at 1:16 PM, Sohan badaya <sohan.badaya@gmail.com> wrote:
> Hi All,
>
> I have a doubt that what is the difference between
> adapter.notifyDataSetChanged();
> adapter.notifyDataSetInvalidated();
>
> because when i used both one by one, both worked exactly same.
> Please let me know what is the exact difference between these two.
>
> Thanks,
> Sohan Badaya
>
> --
> 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+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

--
Romain Guy
Android framework engineer
romainguy@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment