今天先学习了动态广播传递
![](https://img-blog.csdnimg.cn/img_convert/7f8f6d97a8c570d404fdfd4c07de25cf.png)
![](https://img-blog.csdnimg.cn/img_convert/aacb377c97234b246d984a88c2b0fa6c.png)
然后学习了有序广播
可以使用intentFilter1.setPriority(50);设置优先级
使用abortBroadcast();中断广播
![](https://img-blog.csdnimg.cn/img_convert/10293e5697328b83a889ffdea34f372c.png)
![](https://img-blog.csdnimg.cn/img_convert/900a6d986777c415df6136c6f2bc3f6d.png)
![](https://img-blog.csdnimg.cn/img_convert/e22531725906d795055c33a4dad79967.png)
![](https://img-blog.csdnimg.cn/img_convert/6404245e102ceb735080cd24d8a2e3e9.png)
然后学习了在不同的App中传递广播
先创建一个新的Module
然后写个权限
![](https://img-blog.csdnimg.cn/img_convert/a8ed62ab1d21ef99f9f9d78c0e4622cc.png)
使用粘性广播
![](https://img-blog.csdnimg.cn/img_convert/119a1d9192767b35114f5b7d693aeb4c.png)
![](https://img-blog.csdnimg.cn/img_convert/b2f973ad5fc424950e010cfc1bc3fa2a.png)
![](https://img-blog.csdnimg.cn/img_convert/d1fd18f6f65171b0d948b4f3e17a9bb4.png)
然后学习了不同的Fragment之间的广播传递
![](https://img-blog.csdnimg.cn/img_convert/11d23a6cb6a888d09c8ff9c3ce1b0cbf.png)
在第一个Fragment里面写按钮也要使用粘性广播
![](https://img-blog.csdnimg.cn/img_convert/3d87e6125f606276be75df7267d9d409.png)
![](https://img-blog.csdnimg.cn/img_convert/0b3dcfe3d20ec9cf189e97e1dbf70321.png)
然后学习了本地加载
要使用LocalBroadcastManager localBroadcastManager;
![](https://img-blog.csdnimg.cn/img_convert/2f0e01c89eb59fc53bce3a3f7268086a.png)
![](https://img-blog.csdnimg.cn/img_convert/2700ff27c43ae6eaa37466c3d2a769e9.png)
![](https://img-blog.csdnimg.cn/img_convert/a919601be603d739c1e0769410d2dec1.png)
本地加载不能用于不同的App之间
然后是通过广播发送通知
![](https://img-blog.csdnimg.cn/img_convert/6f8da533d6be0fb3ae0faca79b91f233.png)
![](https://img-blog.csdnimg.cn/img_convert/ed8330699c314c7b84e5bde2af977856.png)
最后学习了系统的广播
先要写入权限必须写入权限
![](https://img-blog.csdnimg.cn/img_convert/7ea12975dba29b91055b0cb46430b2b1.png)
这个权限是打电话的权限
飞行模式不用加载权限
![](https://img-blog.csdnimg.cn/img_convert/391f244e7e24e5357b0ca1d8de1c32e6.png)
![](https://img-blog.csdnimg.cn/img_convert/b7571439f7255ba25e19d68deed1487c.png)