Android Application 和静态广播关系

只有在Manifest文件中静态注册播后,应用首先会执行Application的oncreate函数,然后在执行onReceiver函数。

Log:
06-13 11:33:04.879 2478 2478 I AppApplication: onCreate
06-13 11:33:04.889 2478 2478 I BootReceiver: action=android.intent.action.BOOT_COMPLETED

发布了83 篇原创文章 · 获赞 19 · 访问量 6万+

猜你喜欢

转载自blog.csdn.net/weixin_38148680/article/details/91849367