Changing the outgoing call number

by Seer » Sun, 12 Apr 2009 08:38:22 GMT

Sponsored Links
I have been using a receiver listening to NEW_OUTGOING_CALL and i can
capture the outgoing call broadcast but every time i manipulate the
intent that is broadcast it is ignored.

What is the best way to change the outgoing call number.  ideally i
would like to record the call as going to the original number , dial a
completely different number and if possible change the number shown
the the user to something else to show it is using a different number
but still show the number they are trying to dial as well.

Can anyone help me or point me in the right direction with this?


Changing the outgoing call number

by Seer » Sun, 12 Apr 2009 13:50:18 GMT

 well i can change the outgoing number now but i still have not worked
out a way to update the call log to use the original number or a way
to display the original number as the number been called or a modified
one install of the one actually been used. I am using something like a
calling card and don't want all the other numbers you need to put in
front of a dialed number in the call log etc or on the screen as i
still want to display the persons contact details and maybe mention a
calling card is been used.



Sponsored Links

Changing the outgoing call number

by TAKEphONE » Sun, 12 Apr 2009 17:29:26 GMT


Can you post the code you're using to change the dialed number ?

When you change it - what do you see in the "current call" screen ?


Changing the outgoing call number

by Seer » Sun, 12 Apr 2009 18:34:29 GMT

 n the manifest you need the following
android:name="android.permission.PROCESS_OUTGOING_CALLS" />

and you need to add a receiver as well
<receiver android:name=".OutgoingNumber">
<intent-filter android:priority="1">

then my receiver calls is something like this

import java.util.Iterator;
import java.util.Set;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

public class OutgoingNumber extends BroadcastReceiver

public void onReceive(Context context, Intent intent)
Log.d("OutGoingNum", "Action is " + intent.getAction());

String phonenbr =
Log.d("OutGoingNum", "phonenbr is " + phonenbr);

String data1 = this.getResultData();
Log.d("OutGoingNum", "data1=" + data1);

String data2 = this.getResultData();
Log.d("OutGoingNum", "data12=" + data2);

as to what is displayed on the call screen it changes between the
emulator and the actual phone. The emulator looks liek it is dialing
the original number but te call log shows you called the other number
but on a G1 it shows the new number you are dialing and this is also
in the call log.

That is why i need to find out how to change the call log to fix the
number that gets recorded. I would love to change the number shown to
the user as well but i am not sure if that is possible.


On Apr 12, 7:29pm, TAKEphONE <> wrote:

Changing the outgoing call number

by Jeepston » Mon, 13 Apr 2009 12:12:47 GMT

 Could, please, give a snippet of your code, where you change outgoing
call number?


Changing the outgoing call number

by TAKEphONE » Tue, 14 Apr 2009 17:34:02 GMT


Did you check to see if there are any other "extras" that may be
related ?

On Apr 12, 1:34pm, Seer <> wrote:

Other Threads

1. InCallScreen activity failed to start when an MT call was received while BT headset is connected.

Anyone seen this on the AOSP release 2.01?
1. Connected BT with the phone.
2. Make a call to the phone.
3. Phone.apk crashed with the following message:

java.lang.RuntimeException: Unable to start activity ComponentInfo
android.content.res.Resources$NotFoundException: Resource ID

4. Resource 0x7f030009 is dtmf_twelve_key_dialer

The problem doesn't occur when BT not connected.

- Wen

2. gears and android 2.X

Hi. We have a web application that uses google gears to store local
copy of remote data. Now, we can't test our application on android
simulator 2.0 or 2.1, because it does not support google gears, nor it
is installable. I know that google is abandoning gears and migrate it
to html 5. Is there any guide to migrate old gears code to new html5
version? Thanks a lot for your time.

3. Layout issues for multiple screen sizes and API versions

4. How to run my app only when screen saver runs

5. 鈥淐onnection reset by peer鈥? exception when connecting android g1 to rs232 adapter

6. How to disable user interaction arising from a long press to an EditText

7. How to feed MediaPlayer with AMR chunks properly