码迷,mamicode.com
首页 > 其他好文 > 详细

BrodCast的理解

时间:2016-03-02 23:59:57      阅读:574      评论:0      收藏:0      [点我收藏+]

标签:

*广播发送方调用 sendBrodcast(Intent intent),该方法是由ContextWrapper定义的
*广播接受方调用BroadcastReceiver来实现,
广播的动态注册,调用registerReceiver(BroadcastReceiver reciver, IntentFilter filter)
thirdReceiver = new InnerThirdReceiver();
IntentFilter thirdFilter = new IntentFilter();
thirdFilter.addAction("cn.tedu.intent.action.SIMPLE_BROADCAST");
thirdFilter.setPriority(88888);
registerReceiver(thirdReceiver, thirdFilter);

BrodCast的理解

标签:

原文地址:http://www.cnblogs.com/gentspy/p/5236699.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!