Good evening. There is an AsyncTask that receives data from the server. During work I call
onProgressUpdate(Item... values); { super.onProgressUpdate(values); items.add(values[0]); Log.d(TAG, values[0].toString()); adapter.notifyDataSetChanged(); } where items is ArrayList<Item> , adapter is ArrayAdapter . No items are added (Data arrives correct). If you carry out the same actions in onCreate() then the element will be added. What could be wrong?
adapterexactly contains exactly the list ofitemsand not a copy of it? How do you writeitemstoadapter? - xkorArrayList<Item> items = new ArrayList<>();adapteradapter = new mAdapter(this, items);mAdapter- adapter for my markup - kBroonCreate()method, in other activities everything also works with the same adapter - kBro