Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
主要思想是如何从 onReceive() 停止运行线程,例如,如果连接丢失,停止正在连接互联网的线程?我有一个扩展 BroadcastReceiver 的类,我想访问另一个类中正在运行的线程来停止它。