我有一个 android 片段,其中包含一个实现如下的 android AsyncTask 类
protected class getGraph extends
AsyncTask<GraphFragment, Void, GraphFragment> {
@Override
protected GraphFragment doInBackground(GraphFragment... params) {
performance = getPerformance(sharename);
return null;
}
protected void onPostExecute(GraphFragment Param) {
}
}
现在我想将作为 ArrayList 的值性能返回给调用方法。我该如何实现?