asynctask run on ui thread fragm code example Example: asynctask run on ui thread fragment getActivity().runOnUiThread();