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.
考虑以下场景:
一个人Service注册了一个有几个动作的人。如果在处理另一项操作时收到其中一项操作,它会排队还是中止?BroadcastReceiverIntentFilter
Service
BroadcastReceiver
IntentFilter
将Intent排队,直到可以交付。如果您的接收器花费的时间太长,Android 可能会决定终止其进程(但如果发生这种情况,logcat 输出将清楚说明原因)。
Intent