Hi,

I have inserted some new mime types and related data into mietypes and
data tables of contact. Now i want to view them through default
android contacts app. Could u tell me the location of the exact XML
file which needs to be modified? Any help is highly appreciated.

Regards
Saty

On Oct 27, 8:23 pm, Jeff Sharkey <[email protected]> wrote:
> If the VoIP app can complete calls to any normal phone number, it
> should have an <intent-filter> for normal "tel:" style Intents, which
> allows you to leverage any phone numbers already entered by the user.
> If the VoIP contact method is instead something like a username, you
> can insert a custom Data row under a RawContact.
>
> http://d.android.com/reference/android/provider/ContactsContract.html
>
> For that custom Data row to appear in the Contacts app, you'll need to
> associate your custom MIME-type with XML that describes how to render
> the UI.  The only current way of doing this is to define a sync
> adapter <service> and add <meta-data> definition inside, something
> like this:
>
> <meta-data android:name="android.provider.CONTACTS_STRUCTURE"
> android:resource="@xml/contacts" />
>
> Then define the XML inside your app:
>
> --snip--
> <ContactsSource xmlns:android="http://schemas.android.com/apk/res/android";>
>     <ContactsDataKind
>         android:mimeType="vnd.com.example.voip.cursor.item/voip_profile"
>         android:icon="@drawable/icon"
>         android:summaryColumn="data2"
>         android:detailColumn="data3" />
> </ContactsSource>
> --snip--
>
> j
>
> On Wed, Oct 14, 2009 at 2:01 PM, dreamerns <[email protected]> wrote:
>
> > I know this question was asked couple of times in this list, but I
> > haven't found any answer in archives, and last time this subject was
> > debated almost a year ago. Does anyone knows is it now possible to
> > somehow extend contacts functionality (for example: add custom field
> > for VoIP phone number in which case user can use it to start custom
> > activity for voip)? What are Contacts.ExtensionsColumns for?
>
> > Thanks
> > Nikola
>
> --
> Jeff Sharkey
> [email protected]

-- 
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

Reply via email to