The Intent filters used in registerReceiver(BroadcastReceiver, IntentFilter) and in application manifests are not guaranteed to be exclusive. I want to use dynamically registered BroadcastReceiver that has a reference to an Activity so it can modify its UI. I am using Context.registerReceiver() method but. register receiver in a service. // Registers the receiver so that your service will listen for // broadcasts this.registerReceiver(this. = new IntentFilter (); intentFilter. addAction (MY_ACTION); // 優先度を高めに設定 intentFilter. setPriority (100); registerReceiver (receiver. 版权声明：本文为博主原创文章，未经博主允许不得转载。 前面我们介绍了Android系统的广播机制，从本质来说，它是. registerReceiver(BroadcastReceiver receiver, IntentFilter filter. This Context is the same as what the named application gets when it is launched. Code examples using Context.registerReceiver. Snippets selected and curated by Codota - Find The Right Code registerReceiver可以手动控制，所以适当的注册和取消注册能节省系统资源， receiver . Register a BroadcastReceiver to be run in the main activity thread. The receiver will be called with any broadcast Intent that matches filter, in the main. Using Broadcast receivers in Android. This tutorial describes how to create and consume broadcast receivers in Android.