Logo Icon Logo
A Crowd-sourced Cookbook on Writing Great Android® Apps
GitHub logo Twitter logo OReilly Book Cover Art

Processing Outgoing Phone Calls

Johan Pelgrim

Problem:

You want to block certain calls, or alter the phone number about to be called.

Solution:

Listen for the Intent.ACTION_NEW_OUTGOING_CALL broadcast action and set the result data of the broadcast receiver to the new number.

Discussion:

See Also:

Download:

The source code for this project can be downloaded from https://github.com/downloads/jpelgrim/androidcookbook/OutgoingCallInterceptor.zip.