title: Register Broadcast Receiver from another Broadcast Receiver in android
body: <p>Currently I have Broadcast Receiver for listening call states events. I have registered Broadcast Receiver in <code>AndroidManifest.xml</code> as shown below.</p>
  
  <pre><code>&lt;receiver android:name=".api.PhoneCallReceiver"&gt;
       &lt;intent-filter&gt;
            &lt;action android:name="android.intent.action.PHONE_STATE" /&gt;
       &lt;/intent-filter&gt;
  &lt;/receiver&gt;
  </code></pre>
  
  <p>When Application launches this broadcast receiver is registered for listening call states events and according to <code>CALL_STATE</code> i am managing my application. </p>
  
  <p>It is working fine until phone restarts.
  After phone restart this broadcast receiver stops working. I know I have to register receiver for listening <code>BOOT_COMPLETED</code> event of system. </p>
  
  <p>What i have done is like shown below:</p>
  
  <pre><code>&lt;receiver android:name=".api.PhoneCallReceiver"&gt;
       &lt;intent-filter&gt;
            &lt;action android:name="android.intent.action.PHONE_STATE" /&gt;
       &lt;/intent-filter&gt;
       &lt;intent-filter&gt;
            &lt;action android:name="android.intent.action.BOOT_COMPLETED" /&gt;
       &lt;/intent-filter&gt;
  &lt;/receiver&gt;
  </code></pre>
  
  <p>I have also given Permission for getting <code>BOOT_COMPLETED</code> system event.</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /&gt;
  </code></pre>
  
  <p>but somehow it is not working. I am thinking of making new Broadcast Receiver that listens for <code>BOOT_COMPLETED</code> event only but issue is that </p>
  
  <p>So my questions is how can i start this Phone Call Listener Broadcast Receiver when any incoming call comes in?</p>
  
  <p>How can i register Broadcast Receiver from another Broadcast Receiver </p>
  
  <p>Do i have to move my existing broadcast receiver's code to service so i can start service from Boot Receiver?</p>
  
  <p>Any help will be appreciated.</p>