title: OnReceive call not working Android
body: <p>I have a class which the code as follows:</p>
  
  <pre><code>public class CallManager extends BroadcastReceiver {
  
      @Override
      public void onReceive(Context context, Intent intent) {
          tManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
          Log.i("onReceive","here");
      }
  }
  </code></pre>
  
  <p>Permissions on the manifest:</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt;
  &lt;uses-permission android:name="android.permission.CALL_PHONE" /&gt;
  &lt;uses-permission android:name="android.permission.READ_PHONE_STATE"/&gt;
  &lt;uses-permission android:name="android.permission.PROCESS_INCOMING_CALLS" /&gt;
  &lt;uses-permission android:name="android.permission.BOOT_COMPLETED" /&gt;
  </code></pre>
  
  <p>Receiver intent filter:</p>
  
  <pre><code>&lt;receiver android:name="com.ram.tapdetector.CallManager"&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>For some reason, nothing is getting logged from the onReceive function?</p>
  
  <p>How can I fix this? Any help would be appreciated, thanks.</p>