Android9.0發送自定義靜態廣播必須是定向廣播,否則收不到,兩種方式將廣播設置爲定向廣播:
1.添加自定義權限;
2.發送廣播設置包名,即:intent.setPackage("xxxxx'");
————————————————
版權聲明:本文爲CSDN博主「Cailand」的原創文章,遵循 CC 4.0 BY-SA 版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/Cailand/article/details/89330197