Reputation: 1166
I have added a connection to my app for an existing contact and my app's icon shows up for that Contact in the native Contacts App. However, when I touch my app icon, Contacts App crashes. Please let me know which part of code I should paste to help you guide me. Appreciate your help.
Upvotes: 0
Views: 62
Reputation: 217
hey add this code into AndroidMainfest.xml
suppose you want open first activity on icon click.then add this intent filter into that activity
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT">
<data android:mimeType="vnd.android.cursor.item/vnd.package_name.activity_which_you_want_to_open" />
</intent-filter>
Upvotes: 1
Reputation: 74
Have you added intent filter to your app like one below, If not add it to your main activity in Manifest.
<activity android:name="MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
Upvotes: 0