只是想确认Application.onCreate()
可以保证在调用之前BroadcastReceiver.onReceive()
?假设您正在等待BOOT广播或SMS广播,可以确定Application.onCreate()
在到达之前已经被呼叫过一次BroadcastReceiver.onReceive()
吗?谢谢
public void onReceive(Context context, Intent intent)
如果您注册一个静态的接收器,上下文是应用程序,否则就是你所说的情况下registerReceiver
用
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句