How to hide / cancel the default input screen

I am currently intercepting a call and redirecting it to my configured "oncallscreen" activity. However, before it gets to my screen, it will start flashing by default "oncallscreen". How can I hide / cancel this screen, so when I receive a call, I get only my custom screen.

@Override
public void onReceive(Context context, Intent intent) {
    Bundle extras = intent.getExtras();
    if (extras != null) {
        String state = extras.getString(TelephonyManager.EXTRA_STATE);
        Log.w("DEBUG", state);
        if (state.equals(TelephonyManager.EXTRA_STATE_RINGING)) {
            String phoneNumber = extras
                    .getString(TelephonyManager.EXTRA_INCOMING_NUMBER);
+5
source share
1 answer

android.intent.action.PHONE_STATE , , BroadcastReceiver.onReceive() BroadcastReceiver.abortBroadcast(), , ' t . .

+1

All Articles