Goog Morning Dan,
Thank you for your reply.
This project is very simple and there isn't such functions as delete
and edit. That's why only action with the size of adapter is adding
and it's in safe method of AsyncTask

On 14 ноя, 06:52, Dan Dumont <ddum...@gmail.com> wrote:
> I'm pretty sure that if the size of the adapter changes while the layout is
> being calculated you will get this exception.
>
> All additions, deletions, and data updates should be done in the UI thread I
> think.
> Using an AsyncTask is one way to do this.   Make sure that each piece of
> data your background process produces is added to the adapter in the safe
> methods of the AsyncTask.
>
> On Fri, Nov 13, 2009 at 5:43 PM, Sergey Vasilinets <
>
> sergey.vasilin...@googlemail.com> wrote:
> > Hello,
> > I have a error "11-14 01:23:23.204: ERROR/AndroidRuntime(730):
> > java.lang.IllegalStateException: The content of the adapter has
> > changed but ListView did not receive a notification. Make sure the
> > content of your adapter is not modified from a background thread, but
> > only from the UI thread.
> > ".  This error was discussed earlier here. I took the advices given
> > there, but they didn't solve problem completely.
> > My ListView fills in without exception. But if I've begun to click
> > (frequently) on elements of listview , while it is filling in, i see
> > that error.
> > I'm  using the ListView + Cursor , and  I'm sure that the cursor is
> > updated from the main thread (via AsyncTask, also I tried Handlers
> > with post() , but it works the same)
>
> > I wrote specially simple project to show my problem, and it's here :
> >http://listexample.googlecode.com/
>
> > I'm looking forward to your answers to know what I'm doing wrong.
>
> > PS Sorry for my bad english.
>
> > Sergey Vasilinets.
>
> > --
> > 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<android-developers%2bunsubscr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
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