我在想,如果它可以创建一个线程,并杀死/完成的活动,它甚至有可能,如果是的话怎么就不能在的AsyncTask的doInBackGround()
I was wondering if its possible to create a Thread and kill/finish The Activity, is it Even possible, if yes then how come it does not work in AsyncTask's doInBackGround()
您应该只调用从UI线程完成()。
You should only call finish() from the UI thread.