[英]can i kill or finish() an Activity in a Thread other than UI thread..?
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()
我想知道是否可以创建一个线程并杀死/完成活动,是否有可能,如果是,那么它为什么在
AsyncTask's doInBackGround()
中不起作用
You should only call finish() from the UI thread.您应该只从 UI 线程调用 finish()。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.