What I want to do: run a background thread which calculates ListView contents and update ListView partially, while results are calculated.
W
Like @Mullins said "
I both added the items and called notifyDataSetChanged()
in the UI thread and I resolved this. – Mullins".
In my case I have asynctask
and I called notifyDataSetChanged()
in the doInBackground()
method and the problem is solved, when I called from onPostExecute()
I received the exception.