how can i show custom dialog box (when call comes true caller shows caller id like that) when my android application receives notification

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-25 08:13:07

问题


popup message like whats app, caller id like the true caller, I am trying to make the same thing.

I tried using a broadcast receiver but I do not know how to show the dialog box when a broadcast receives a notification.

a pop-up message like WhatsApp shows when a notification arrives on a phone.


回答1:


Set mainactivity as a launcher screen. In the mainactivity before setContentView method calling check if the intent has extra parameters as per your requirement. If yes, then finish the current activity and start DialogActivity.



来源:https://stackoverflow.com/questions/58004218/how-can-i-show-custom-dialog-box-when-call-comes-true-caller-shows-caller-id-li

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!