Connecting Samsung Apps to My App

My App creates contacts on Android using ContactsContract and a custom Mimetype. On HTC and in the emulator, the contact shows up under Actions where I can connect and this will take me to my app activity. When the same app is launched on a Samsung Galaxy device, the contact is displayed in the Connected Via section, but the icon is not clickable. I'm sure it is possible to make this work because the WhatsApp app displays the same location and it is viewable. I have reviewed the Content Content URIs and do not see any difference between the contacts that WhatsApp makes and my contacts.

I think the contacts.xml and manifest parts are relevant and included below.

contacts.xml:

<?xml version="1.0" encoding="utf-8"?>
<ContactsSource xmlns:android="http://schemas.android.com/apk/res/android">

    <ContactsDataKind
        android:mimeType="vnd.android.cursor.item/vnd.com.bmarko.contact"
        android:icon="@drawable/ic_launcher"
        android:summaryColumn="data2"
        android:detailColumn="data3"
        android:detailSocialSummary="true" />

</ContactsSource>

      

snippet of manifest.xml file:

<activity
    android:name="com.bmarko.dialer.views.newconversation.NewConversationActivity"
    android:label="@string/app_name"
    android:windowSoftInputMode="stateAlwaysVisible" >
    <intent-filter>
        <action android:name="android.intent.action.SEND" />

        <category android:name="android.intent.category.BROWSABLE" />
        <category android:name="android.intent.category.DEFAULT" />

        <data android:mimeType="*/*" />
    </intent-filter>
    <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <data android:mimeType="vnd.android.cursor.item/vnd.com.bmarko.contact" />
    </intent-filter>

</activity>

      

Any ideas how to make this work?

+3


source to share





All Articles