@Override protected void onPostExecute(ArrayList<Brygd> brygds) { // try {Thread.sleep(5000);} catch (InterruptedException e) {} Log.d(TAG, "onPostExecute, brygds.length = " + brygds.size()); mBrygds = brygds; BrygdAdapter adapter = new BrygdAdapter(mBrygds); setListAdapter(adapter); Log.d(TAG, "onPostExecute, nu är adaptern satt, getCount = " + adapter.getCount()); BrygdLab.setBrygds(brygds); /* if (getActivity() != null) { Toast.makeText(getActivity(), "Öllistan uppdaterad.", Toast.LENGTH_LONG).show(); } */ }