IntentFilter filter = new IntentFilter(); //创建了一个 IntentFilter,
filter.addAction("ACTION_SEND_MY_TOKEN");
registerReceiver(broadcastReceiver, filter, Context.RECEIVER_NOT_EXPORTED); //注册了一个广播接收器,这个我会用咱们的插件接收,不需要管
sendBroadcast(new Intent("ACTION_SEND_MY_TOKEN"));
要发送这么一个广播,要如何实现呢?
l***@qq.com (作者)
CustomBroadcast.sendCustomBroadcast('ACTION_SEND_JXW_TOKEN',{'start_reg':'true'});
没启作用
data里也加了自定义
actionList: [
//"com.CustomBroadcast.ddd",//自定义的广播
"ACTION_SEND_JXW_TOKEN",
2024-06-27 16:07