我想知道是否可以创建一个线程并杀死/结束Activity,如果可以,为什么在AsyncTask的doInBackground()中不能正常工作?
AsyncTask的doInBackground()
你应该只在UI线程中调用finish()方法。