private void showResponse(final String response) { //在子线程中更新UI getActivity().runOnUiThread(new Runnable() { @Override public void run() { text_dashboard.setText(response); } }); }