Syncadapterを使用して、QuickContactBadgeにバッジと意図を追加します
質問
Syncadapterがあり、連絡先の同期は正常に機能します。連絡先アプリケーションのQuickContactBadgeに追加された素敵なバッジが必要です。どうすればこれを機能させることができますか?
解決
解決策を見つけました。基本的に、マニフェストでは、どのアクティビティがマージされた接点を処理できるかを伝えます。マージを行うときは、MIMEタイプを選択しました。
<intent-filter android:icon="@drawable/hyves">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="vnd.android.cursor.item/vnd.hyves.profile" />
</intent-filter>
次に、アクティビティが開始されると、cursor cur = getContentResolver()。query(getIntent()。getData()、null、null、null、null);
所属していません StackOverflow