2

我是android开发的新手。我开发了一个应用程序,其中有个人联系人目录。我可以从该目录拨打电话,但是如果有人从我的个人目录中存在的同一号码拨打电话,如何在来电显示中显示联系信息。

如果设备联系人列表中不存在来电者信息,我需要在来电者 ID 中映射我的联系人目录信息。

请帮忙。

4

1 回答 1

3

You can't directly add content to the native incoming call screen, but you can put an overlay window above it to display your content.

Read the discussion in this thread regarding the overlay part:

Pop up window over Android native incoming call screen like true caller Android app

The answers contain all the information you require, though you will need to put the pieces together.

@Dharmik has a pretty good example for listening for the phone state (find out if a call is incoming), and @SamAdams gives a good idea about doing the overlay. My own answer builds on that of @SamAdams regarding removing the overlay screen.

于 2013-11-13T19:26:28.657 回答