Update UI from an AsyncTaskLoader
问题 I've converted my AsyncTask to an AsyncTaskLoader (mostly to deal with configuration changes). I have a TextView I am using as a progress status and was using onProgressUpdate in the AsyncTask to update it. It doesn't look like AsyncTaskLoader has an equivalent, so during loadInBackground (in the AsyncTaskLoader ) I'm using this: getActivity().runOnUiThread(new Runnable() { public void run() { ((TextView)getActivity().findViewById(R.id.status)).setText("Updating..."); } }); I am using this in