Executing a Thread in Asynctask and its complications
问题 I was wondering is it ok to execute a Thread inside the doInBackground method of Asynctask . Should I avoid using this kind of structure on my codes? And if yes, why should I avoid it? Would this cause any ineffectiveness in my apps? 回答1: In principle , there's no problem with starting a thread in the doInBackground() of an AsyncTask , but sometimes you see this done not because it's the right thing to do, but because of a misunderstanding about how AsyncTask works. The point is that