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