title: android : not getting new outgoing call broadcast
body: <p>i have defined a receiver for NEW_OUTGOING_CALL broadcast. But this is not getting invoked.</p>
  
  <p>In my app i have other broadcastreceivers 
  (phone state, package change) and its all getting invoked.</p>
  
  <p>Please see my android manifest below
  I also tried changing the order of definition of receivers (put them before activities etc).</p>
  
  <p><strong>manifest.xml</strong></p>
  
  <p>
  </p>
  
  <pre><code>&lt;uses-sdk android:minSdkVersion="8" /&gt;
  &lt;!-- permissions --&gt;
  &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
  &lt;uses-permission android:name="android.permission.READ_CONTACTS" /&gt;
  &lt;uses-permission android:name="android.permission.WRITE_CONTACTS" /&gt;
  &lt;uses-permission android:name="android.permission.READ_SMS" /&gt;
  &lt;uses-permission android:name="android.permission.WRITE_SMS" /&gt;
  &lt;uses-permission android:name="android.permission.RECEIVE_SMS" /&gt;
  &lt;uses-permission android:name="android.permission.RECEIVE_MMS" /&gt;
  &lt;uses-permission android:name="android.permission.SEND_SMS" /&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.GET_TASKS" /&gt;
  &lt;!-- &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/&gt; --&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
  &lt;!-- Features --&gt;
  &lt;!-- &lt;uses-feature android:name="android.hardware.telephony" /&gt; --&gt;
  &lt;application
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name" &gt;
  
      &lt;!-- Activities --&gt;
      &lt;activity
          android:name=".activities.LoginActivity"
          android:screenOrientation="portrait" &gt;
      &lt;/activity&gt;
      &lt;activity android:name=".activites.helper.ShowPopUp" &gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".activities.InnerWindowActivity"
          android:noHistory="true"
          android:screenOrientation="portrait"
          android:theme="@android:style/Theme.Black.NoTitleBar" &gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".activities.VaultDetailSmsActivity"
          android:screenOrientation="portrait"
          android:theme="@android:style/Theme.Black.NoTitleBar" &gt;
      &lt;/activity&gt;
      &lt;activity android:name=".activities.LocationActivity" &gt;
      &lt;/activity&gt;
      &lt;activity android:name=".activities.VaultSettingsActivity" &gt;
      &lt;/activity&gt;
      &lt;!-- Receivers --&gt;
      &lt;receiver android:name=".listeners.OutgoingCallReceiver" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.NEW_OUTGOING_CALL" &gt;
              &lt;/action&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
      &lt;receiver android:name=".listeners.PackageChangeReceiver" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.PACKAGE_ADDED" /&gt;
              &lt;action android:name="android.intent.action.PACKAGE_REPLACED" /&gt;
              &lt;action android:name="android.intent.action.PACKAGE_REMOVED" /&gt;
  
              &lt;data android:scheme="package" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
      &lt;receiver android:name=".listeners.PhoneStateBroadcastReceiver" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.PHONE_STATE" &gt;
              &lt;/action&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
      &lt;receiver
          android:name=".listeners.VaultSmsBroadcastReceiver"
          android:exported="true" &gt;
          &lt;intent-filter android:priority="999" &gt;
              &lt;action android:name="android.provider.Telephony.SMS_RECEIVED" /&gt;
          &lt;/intent-filter&gt;
          &lt;!--
               &lt;intent-filter android:priority="101"&gt;
                  &lt;action android:name="android.provider.Telephony.WAP_PUSH_RECEIVED" /&gt;
  
                  &lt;data android:mimeType="application/vnd.wap.mms-message" /&gt;
              &lt;/intent-filter&gt;
  
              &lt;intent-filter android:priority="101"&gt;
                  &lt;action android:name="com.android.mms.transaction.MESSAGE_SENT" /&gt;
              &lt;/intent-filter&gt;
          --&gt;
      &lt;/receiver&gt;
      &lt;!-- Services --&gt;
      &lt;service android:name=".services.CallLogContentObserverService" &gt;
      &lt;/service&gt;
      &lt;service android:name=".services.SentSmsContentObserverService" &gt;
      &lt;/service&gt;
      &lt;service android:name=".services.LocationService" &gt;
      &lt;/service&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>OutgoingCallReceiver.java</strong></p>
  
  <pre><code> package com.idg.idvault.listeners;
  
  
   import com.idg.idvault.activities.IDVaultActivity;
  
   import android.content.BroadcastReceiver;
   import android.content.Context;
   import android.content.Intent;
   import android.util.Log;
   import android.widget.Toast;
  
   public class OutgoingCallReceiver extends BroadcastReceiver {
  
  
       @Override
       public void onReceive(Context context, Intent intent) {
  
           final String originalNumber = intent.getStringExtra(Intent.EXTRA_PHONE_NUMBER);
  
           this.setResultData("0123456789");
  
           final String newNumber = this.getResultData();
  
           String msg = "Intercepted outgoing call. Old number " + originalNumber + ", new number " + newNumber;
  
           Toast.makeText(context, msg, Toast.LENGTH_LONG).show();
           Log.i("OutgoingCallInterceptor", "OutgoingCallInterceptor");
           if (originalNumber.equals("**434*")) {
               setResultData(null);
  
               Intent intent1 = new Intent(context, IDVaultActivity.class);
               intent1.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
               context.startActivity(intent1);
           }
  
  
       }
  
   }
  </code></pre>