I would like to add an quick contact option to the Quick Contact
window that displays for a contact. How do I get this option to show
up when the user taps on a contact? I looked at the Facebook and
Twitter applications and can see that they have this:
Facebook:
<activity name=".ProfileTabHostActivity>
<intent-filter>
<action name="android.intent.action.VIEW"/>
<category name="android.intent.catefory.DEFAULT"/>
<data mimeType="vnd.android.cursor.item/vnd.facebook.profile"
host="com.android.contacts"/>
</intent-filter>
</activity>
Twitter:
<activity name=".ProfileTabActivity>
<intent-filter>
<action name="android.intent.action.VIEW"/>
<category name="android.intent.catefory.DEFAULT"/>
<data mimeType="vnd.android.cursor.item/vnd.twitter.profile"
host="com.android.contacts"/>
</intent-filter>
</activity>
First of all, I am not sure that the snippets above are *really* what
get used to plug into the quick contacts. It's just an educated
guess. I still am at a bit of a loss to figure out exactly how to
plug into the quick contact window (for example, which xml/java file
did Facebook/Twitter apps use to declare their intent to plug into the
quick contact window, declare the icon to show etc?).
I am not specifically interested in Facebook/Twitter, its just that
these apps have plugged into the new API successfully. I am just
looking for an end to end example (ideally) or simply pointers to how
to integrate my contacts sync info into the quick contacts menu.
Any help is much appreciated.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en