简体   繁体   中英

Show full screen Incoming Call Activity in Android

In Android sometimes when we use an app and we receive a call, appears the full screen Incoming call activity

全屏来电服务

Instead if i create a new blank main activity and i put a simple BroadCast receiver, when im in the main activity and i receive a call this compares:

来电通知弹窗

There is a way to show the full screen incoming call or just hide the incoming call popup notification? I searched a lot but i have not found anything...

MainActivity.java

public class MainActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
}

public static class PhoneStateReceiver extends BroadcastReceiver {
    public void onReceive(Context context, Intent intent) {

        Toast.makeText(context, "OK", Toast.LENGTH_LONG).show();
    }
}

}

in android The system UI may choose to display a heads-up notification, instead of launching your full-screen intent, while the user is using the device. check it out Display time-sensitive notifications

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM