Re: [android-developers] How to create contact list view plug-in?
Hi Xi Shen, QuickContact does not associate app icons with the entire contact. So there is no simple way to simply add an application to QuickContact so that it would show for all contacts. Instead, QuickContact associates app icons with contact's data such as email address, phone number etc. It looks at all ContactsContract.Data rows for the contact and displays one icon per mime type. If your app needs to be associated with an existing mimetype (e.g. email address, IM address etc) then all you need to do is add an intent filter for that mime type to your app and you are set. If your app needs to be linked to a brand new type of data, that's far more complex. This is typically done by introducing a sync adapter. The sync adapter declares the new mime type and provides an activity with the corresponding intent filter. Then it creates ContactsContract.RawContact's for all contacts that need to be linked to your application and inserts a data row with the custom mime type. Then it either relies on automatic contact aggregation or links raw contacts programmatically using the ContactsContract.AggregationException API. Here is an example of how this can be done: http://developer.android.com/intl/zh-CN/resources/samples/SampleSyncAdapter/index.html Cheers, - Dmitri On Thu, Jan 27, 2011 at 1:17 PM, TreKing treking...@gmail.com wrote: On Tue, Jan 25, 2011 at 12:43 AM, Xi Shen davidshe...@googlemail.comwrote: Is it possible? No, don't think so. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to create contact list view plug-in?
Hi Xi Shen, QuickContact does not associate app icons with the entire contact. So there is no simple way to simply add an application to QuickContact so that it would show for all contacts. Instead, QuickContact associates app icons with contact's data such as email address, phone number etc. It looks at all ContactsContract.Data rows for the contact and displays one icon per mime type. If your app needs to be associated with an existing mimetype (e.g. email address, IM address etc) then all you need to do is add an intent filter for that mime type to your app and you are set. If your app needs to be linked to a brand new type of data, that's far more complex. This is typically done by introducing a sync adapter. The sync adapter declares the new mime type and provides an activity with the corresponding intent filter. Then it creates ContactsContract.RawContact's for all contacts that need to be linked to your application and inserts a data row with the custom mime type. Then it either relies on automatic contact aggregation or links raw contacts programmatically using the ContactsContract.AggregationException API. Here is an example of how this can be done: http://developer.android.com/intl/zh-CN/resources/samples/SampleSyncAdapter/index.html Cheers, - Dmitri On Tue, Jan 25, 2011 at 6:49 PM, Xi Shen davidshe...@googlemail.com wrote: Hi, This is the function I want to implement: From the contact list view, when you click on the contact's image, a small panel will fly in with buttons. I want to add a button to that panel and also get the contact's information when my button is clicked. Is it possible? What API/topic should I look for? -- Best Regards, Xi Shen (David) http://twitter.com/davidshen84/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to create contact list view plug-in?
On Tue, Jan 25, 2011 at 12:43 AM, Xi Shen davidshe...@googlemail.comwrote: Is it possible? No, don't think so. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to create contact list view plug-in?
Hi, This is the function I want to implement: From the contact list view, when you click on the contact's image, a small panel will fly in with buttons. I want to add a button to that panel and also get the contact's information when my button is clicked. Is it possible? What API/topic should I look for? -- Best Regards, Xi Shen (David) http://twitter.com/davidshen84/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to create contact list view plug-in?
Hi, This is the function I want to implement: From the contact list view, when you click on the contact's image, a small panel will fly in with buttons. I want to add a button to that panel and also get the contact's information when my button is clicked. Is it possible? What API/topic should I look for? -- Best Regards, Xi Shen (David) http://twitter.com/davidshen84/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to create contact list view plug-in?
Hi, This is the function I want to implement: From the contact list view, when you click on the contact's image, a small panel will fly in with buttons. I want to add a button to that panel and also get the contact's information when my button is clicked. Is it possible? What API/topic should I look for? -- Best Regards, Xi Shen (David) http://twitter.com/davidshen84/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en