Trying to intercept outgoing calls, and have a solution working well on
I created the broadcast listener programmatically. It works fine. For your reference.
IntentFilter filter = new IntentFilter();
filter.addAction("android.intent.action.NEW_OUTGOING_CALL");
receiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
Log.d(TAG, "onReceive, Action:" +intent.getAction());
}
};
registerReceiver(receiver, filter);