Intercepting Outgoing calls in Android

  • Replies:0
Shravanthi M
  • Forum posts: 2

Jun 6, 2014, 1:29:02 PM via Website

We have an application that redirects outgoing calls to a predefined number(based on some conditions).

I have initially used setResultData(Newnumber) but that didnt work on HTC desire.
Now i am using setResultData(null) and starting a fresh call with a new Intent as described below.

         setResultData(null);
        Intent callIntent = new Intent(Intent.ACTION_CALL,
            Uri.parse("tel:" + correctedNumber));
        callIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        context.startActivity(callIntent);

This way works for HTC and many other devices that run Android 2.3 - 4.4 expect a Pantech IM-A890k(Vega Secret Note) device that runs on Android 4.2.2. This works on other Androids that have OS 4.2

I have analysed the logs and they seem fine. The device seems to not listen to these commands from the Application.

I have set the receiver Priority to 999, still doesnt work.

Any ideas ???

Reply