Just I want to know if there is a code that can detect if 'im calling someone with the default android phone app.. this is my code here and of course I need more hints
if(intent.getAction().equals("android.intent.action.PHONE_STATE")){
        String state = intent.getStringExtra(TelephonyManager.EXTRA_STATE);
        if(intent.getAction().equals(Intent.ACTION_NEW_OUTGOING_CALL)) {
            call = true;
            Log.v("OUTGOING", String.valueOf(call));
            //Do-NOTHING
        } else {
            if (state.equals(TelephonyManager.EXTRA_STATE_IDLE)){
                if (call == false) {
                    Log.v("OUTGOING", String.valueOf(call));
                    Log.v("CALL", "Call from " + numberPhone);
                    numberPhone = intent.getStringExtra(TelephonyManager.EXTRA_INCOMING_NUMBER);
                }
            }
        }
}
 
                        
And set Receiver
Add Permission
you have to register the intent