Add Badge And Intent To Quickcontactbadge With Syncadapter
I have a SyncAdapter and contact syncing works fine. Only i want a nice badge added to the QuickContactBadge in the contact application. How can i get this to work?
Solution 1:
I found the solution. You basically tell, in your manifest, which activity can handle contacts which are merged. When doing the merging you have chosen a mime type, use this mime type in an for an activity you choose:
<intent-filterandroid:icon="@drawable/hyves"><actionandroid:name="android.intent.action.VIEW" /><categoryandroid:name="android.intent.category.DEFAULT" /><dataandroid:mimeType="vnd.android.cursor.item/vnd.hyves.profile" /></intent-filter>
Then when the activity starts you can get the contact by doing: Cursor cur = getContentResolver().query(getIntent().getData(), null, null, null, null);
Post a Comment for "Add Badge And Intent To Quickcontactbadge With Syncadapter"