【发布时间】:2013-02-02 16:04:07
【问题描述】:
我正在尝试从主屏幕小部件显示快速联系人徽章,该小部件以网格布局显示最喜欢的联系人图片。我浏览了提示here,但仍然无法弄清楚。
当我点击一个联系人时,我总是收到以下错误:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.gridwidget/com.example.gridwidget.ContactBadge}: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.android.contacts.action.QUICK_CONTACT
尽管我调用的是“ContactsContract.QuickContact.showQuickContact();”来自一个活动。
此意图导致问题:com.android.contacts.action.QUICK_CONTACT
我尝试将它添加到我的清单文件中但没有成功:
<activity
android:name="com.example.gridwidget.ContactBadge"
android:label="@string/title_activity_contact_badge"
android:theme="@android:style/Theme.NoDisplay" >
<intent-filter>
<action android:name="com.android.contacts.action.QUICK_CONTACT" />
<action android:name="com.example.gridwidget.BADGE_ACTION" />
</intent-filter>
</activity>
有什么建议吗?由于我正在展示一个集合,我使用了RemoteViewsService 模式,如here 所述
谢谢
【问题讨论】:
标签: android-widget android-contacts