问题 public class HelloPostgreSQLActivity extends Activity { TextView resultArea; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); resultArea = new TextView(this); resultArea.setText("Please wait."); setContentView(resultArea); new FetchSQL().execute(); } private class FetchSQL extends AsyncTask <Void,Void,String> { @Override protected String doInBackground(Void... params) { //TextView tv=(TextView)findViewById(R.id.text); String retval = ""; //