Java – I can kill or complete () an activity in a thread other than a thread?

I wonder if it is possible to create a thread and kill / complete the activity, if so, how can it not work in the doinbackground() of asynctask

Solution

You should only call finish () from the UI thread

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>