【问题标题】:Are Intents queued after being sent?Intent 发送后是否排队?
【发布时间】:2012-10-11 11:19:58
【问题描述】:

考虑以下场景:

一个Service注册了一个BroadcastReceiver,其IntentFilter有几个动作。如果在处理另一个动作时接收到其中一个动作,它会排队还是中止?

【问题讨论】:

    标签: android android-intent broadcastreceiver intentfilter


    【解决方案1】:

    Intent 将排队,直到它可以被传递。如果您的接收器花费的时间过长,Android 可能会决定终止其进程(但如果发生这种情况,logcat 输出将清楚说明原因)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-06-23
      • 1970-01-01
      • 1970-01-01
      • 2018-02-18
      • 1970-01-01
      • 1970-01-01
      • 2012-11-03
      相关资源
      最近更新 更多