简体   繁体   English

Android QuickContact徽章

[英]Android QuickContact Badge

In my Android app I have dataset comprising of phone numbers. 在我的Android应用中,我具有包含电话号码的数据集。 These are shown in a list view with rows consisting of an QuickContactBadge and phone number. 这些显示在列表视图中,其中的行由QuickContactBadge和电话号码组成。

When drawing this list onscreen, we are mapping device contacts with phone numbers and also show Display Name for the contact. 在屏幕上绘制此列表时,我们将使用电话号码映射设备联系人,并显示该联系人的显示名称。

QuickContactBadge is setup to perform lookup based on Phone number. QuickContactBadge设置为根据电话号码执行查找。

Problem : Native contacts cause QuickContact Activity to be shown. 问题:本地联系人导致显示QuickContact活动。 However, clicking on unknown contacts has no bearing at all. 但是,单击未知联系人完全没有影响。 Nothing happens. 什么都没发生。

How are we supposed to configure QuickContactBadge for unknown contacts? 我们应该如何为未知联系人配置QuickContactBadge?

The phone app on my Android phone also seems to employs QuickContactBadge and handles both native and unknown contacts pretty well. 我的Android手机上的手机应用似乎还使用了QuickContactBadge,可以很好地处理本地和未知联系人。

I ended up writing a custom solution since the behavior of Quick Contact badge was not consistent across the Phones. 我最终写了一个自定义解决方案,因为“快速联系”徽章的行为在各款手机中并不一致。 When a contact does not exists on local storage, on some devices QuickContactBadge opened "Add Contact" Page whereas on some it did nothing. 当本地存储中不存在联系人时,在某些设备上QuickContactBadge打开“添加联系人”页面,而在某些设备上则什么都不做。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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