Intent intent=new Intent("携带的action");
当前上下文.this.sendBroadcast(intent);
在Android中发送广播的方式如上,对于接收端而言,注册广播时需要指定intent-filter中的action和”携带的action”相同;
Intent intent=new Intent("携带的action");
当前上下文.this.sendBroadcast(intent);
在Android中发送广播的方式如上,对于接收端而言,注册广播时需要指定intent-filter中的action和”携带的action”相同;