onPostExecute不运行

时间:2015-10-21 14:09:31

标签: java android

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);}}

0 个答案:

没有答案