最新回答 / 梧桐树下的承诺0
package com.example.news;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStream;import java.io.InputStreamReader;import java.util.ArrayList;import java.util.Iterator;import java.util.List;import android.os.AsyncTask;import and...
2015-06-14
最新回答 / orangesweet
1,什么时候检查,这个就看你自己控制了,就跟结束一个线程一样,需要自己判断什么时候去检查flag。在你认为恰当的时机。你可以每隔一行检查一次。。。2,onCancelled(Object)是AsyncTask的回调,带on的么。Calling this method will result in onCancelled(Object) being invoked on the UI thread after doInBackground(Object[]) returns.调用cancel方法会导致onC...
2015-06-10