更新时间:2022-12-05 17:07:29
改变这个
protected String doInBackground(String urls3, String result3)
到
protected String doInBackground(String... args)
然后在 doInBackground 函数中像这样声明变量
Then declare your variables like so inside your doInBackground function
String urls3 = args[0];
String result3 = args[1];
您还需要将 onPostExecute 更正为
You will also need to correct your onPostExecute to
protected void onPostExecute(String result)
和你的类声明
private class FetchWebsiteData extends AsyncTask<String, Void, String>