T
T
TimkaTV2015-05-19 00:25:05
Android
TimkaTV, 2015-05-19 00:25:05

List item selection error?

Good afternoon, faced such problem.
There is a ListView, when scrolling to the end, data is loaded from the stream, but if you select an element of the list during loading (it causes the launch of a new Activity), then an error occurs

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. [in ListView(2131361858, class android.widget.ListView) with Adapter(class project.space.open.openspace.NewBaseAdapter)]

I would like to know, at least in a nutshell, how to fix it. Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
one pavel, 2015-05-19
@TimkaTV

You've been told don't update the data in the background, only the ui and tell the ListView that the data has changed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question