Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8129457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T08:19:00+00:00 2026-06-06T08:19:00+00:00

i have defined a receiver for NEW_OUTGOING_CALL broadcast. But this is not getting invoked.

  • 0

i have defined a receiver for NEW_OUTGOING_CALL broadcast. But this is not getting invoked.

In my app i have other broadcastreceivers
(phone state, package change) and its all getting invoked.

Please see my android manifest below
I also tried changing the order of definition of receivers (put them before activities etc).

manifest.xml

<uses-sdk android:minSdkVersion="8" />
<!-- permissions -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
<uses-permission android:name="android.permission.READ_SMS" />
<uses-permission android:name="android.permission.WRITE_SMS" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.RECEIVE_MMS" />
<uses-permission android:name="android.permission.SEND_SMS" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.GET_TASKS" />
<!-- <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> -->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<!-- Features -->
<!-- <uses-feature android:name="android.hardware.telephony" /> -->
<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name" >

    <!-- Activities -->
    <activity
        android:name=".activities.LoginActivity"
        android:screenOrientation="portrait" >
    </activity>
    <activity android:name=".activites.helper.ShowPopUp" >
    </activity>
    <activity
        android:name=".activities.InnerWindowActivity"
        android:noHistory="true"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.Black.NoTitleBar" >
    </activity>
    <activity
        android:name=".activities.VaultDetailSmsActivity"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.Black.NoTitleBar" >
    </activity>
    <activity android:name=".activities.LocationActivity" >
    </activity>
    <activity android:name=".activities.VaultSettingsActivity" >
    </activity>
    <!-- Receivers -->
    <receiver android:name=".listeners.OutgoingCallReceiver" >
        <intent-filter>
            <action android:name="android.intent.action.NEW_OUTGOING_CALL" >
            </action>
        </intent-filter>
    </receiver>
    <receiver android:name=".listeners.PackageChangeReceiver" >
        <intent-filter>
            <action android:name="android.intent.action.PACKAGE_ADDED" />
            <action android:name="android.intent.action.PACKAGE_REPLACED" />
            <action android:name="android.intent.action.PACKAGE_REMOVED" />

            <data android:scheme="package" />
        </intent-filter>
    </receiver>
    <receiver android:name=".listeners.PhoneStateBroadcastReceiver" >
        <intent-filter>
            <action android:name="android.intent.action.PHONE_STATE" >
            </action>
        </intent-filter>
    </receiver>
    <receiver
        android:name=".listeners.VaultSmsBroadcastReceiver"
        android:exported="true" >
        <intent-filter android:priority="999" >
            <action android:name="android.provider.Telephony.SMS_RECEIVED" />
        </intent-filter>
        <!--
             <intent-filter android:priority="101">
                <action android:name="android.provider.Telephony.WAP_PUSH_RECEIVED" />

                <data android:mimeType="application/vnd.wap.mms-message" />
            </intent-filter>

            <intent-filter android:priority="101">
                <action android:name="com.android.mms.transaction.MESSAGE_SENT" />
            </intent-filter>
        -->
    </receiver>
    <!-- Services -->
    <service android:name=".services.CallLogContentObserverService" >
    </service>
    <service android:name=".services.SentSmsContentObserverService" >
    </service>
    <service android:name=".services.LocationService" >
    </service>
</application>

OutgoingCallReceiver.java

 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);
         }


     }

 }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T08:19:01+00:00Added an answer on June 6, 2026 at 8:19 am

    add <uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS"/> permission for processing outgoing calls in manifest.xml

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have defined a rectangle drawable like this: <shape xmlns:android=http://schemas.android.com/apk/res/android android:shape=rectangle> <corners android:radius=4dip/> <solid
I have defined many constants in GlobalVar.h and other .h files. I import these
I have got a problem and a solution, but I am not really satisfied
I have an Android app with 2 activities defined below. In the MainMenu.oncreate() ,
Looking to define a Broadcast Receiver in the Manifest so I don't have to
I have an array of strings defined like this: char** arrNames; Now I want
I have a broadcast receiver with an intent filter that specifies a single custom
I have the following broadcast reciever that gets called when the phone boots up
I have defined following control template for my custom control. <ControlTemplate TargetType={x:Type local:CustomControl}> <Grid
I have defined the following class using COM to use the IGroupPolicyObject using C#.NET:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.