Android SDK AsyncTask doInBackground未运行(子类)
截至2012年2月15日,我还没有找到一个很好的解释,也没有找到不起作用的原因。最接近解决方案的是使用传统的Thread方法,但是为什么要包含一个(似乎)在Android SDK中不起作用的类? 就这样! 我有一个AsyncTask子类: // ParseListener had a callback which was called when an item was parsed in a // RSS-xml, but as stated further down it is not used at all right now. private class xmlAsync extends AsyncTask<String, RSSItem, Void> implements ParseListener 这样执行: xmlAsync xmlThread = new xmlAsync(); xmlThread.execute("http://www.nothing.com"); …