ItemListBaseAdapter.java
public class ItemListBaseAdapter extends BaseAdapter {
private static ArrayList itemDetailsrrayList;
private I
Don't have itemDetailsrrayList
as static
.
Add this method to your adapter
public synchronized void refresAdapter(ArrayList<Recipedetails> items) {
itemDetailsrrayList.clear();
itemDetailsrrayList.addAll(items);
notifyDataSetChanged();
}
and then make this call from where you want to refresh your adapter
final Activity act = getActivity(); //only neccessary if you use fragments
if (act != null)
act.runOnUiThread(new Runnable() {
public void run() {
yourAdapter.refreshAdapter(item);
}
});
this should solve your problem