onPostExecute
方法未调用 ASyncTask.execute()
private class GetOneNews extends AsyncTask<Void, Void, List<News>> {
@Override
protected List<News> doInBackground(Void... params) {
String newsid = getIntent().getStringExtra("NEWS_ID");
News ter = APIProvider.NewsProvider.getOneNews(context, newsid);
forReturn.add(ter);
return forReturn;
}
@Override
protected void onPostExecute(List<News> result) {
oneNews.add(result.get(0));
super.onPostExecute(result);}}