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
android samsung-mobile contacts android-contacts


source to share


No one has answered this question yet

Check out similar questions:

843
How can I connect to Android with ADB over TCP?
521
Determine if Android has internet access
120
How to call the Android contact list?
68
Read all phone numbers of contacts in Android
17
Error: onNewIntent is not called for singleTop activity with Intent.FLAG_ACTIVITY_NEW_TASK
13
Integrating my app with a contact
eleven
Android - Google Maps API v2 - NoClassDefFoundError
2
Android + Facebook SDK: "Failed to authenticate application due to mismatch of application name."
1
Android - try connecting to Dropbox API version 2
0
Android app cannot deploy to virtual device



All Articles
Loading...
X
Show
Funny
Dev
Pics