Reputation: 67
In my android browser I can share the current link with google+, what's app and so on. Now I want my app to be listed there to. So I use the intent filter:
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.SEND" />
<data android:scheme="http"/>
</intent-filter>
But now my app is only listed in the intent chooser when I click a link. What can I do?
Upvotes: 1
Views: 398
Reputation: 9794
<activity android:name=".ShareLink">
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
</activity>
Upvotes: 2