开发者

android incoming call screen

开发者 https://www.devze.com 2022-12-23 20:59 出处:网络
I would like to add details to the incoming call screen on android. lets say I have a string \'x\', so I want \'x\' to show up on the incoming call screen under the name of the person who is currentl开

I would like to add details to the incoming call screen on android. lets say I have a string 'x', so I want 'x' to show up on the incoming call screen under the name of the person who is currentl开发者_开发百科y calling.

I know this is possible because of these apps: CallerId, Vringo

I'm pretty new to this area, so I need to know what is the process to achieve that, for example: get the event of incoming call, go to the incoming call interface and so on.

Thanks!


I think you have to look at the intent receivers (actually called intent filter => have to be defined in your manifest), there should be one for incoming calls. And then you define your own application, with an activity that is made to receive this kind of intent and with the design you like... if i'm not mistaken, it should be this : ACTION_ANSWER

you can find more doc here and there.


CallerId seems to show Toast on the Call screen or they maybe use WindowManager addView methods (i think Vringo is working in a such way). The most problem in such case is to know that Call Screen is now on the foreground.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号