Android Intent Filter - JamesDansie/data-structures-and-algorithms GitHub Wiki
How to get your app to show up on the "share" list.
- Add
<intent-filter>to your AndroidManifest.xml.
<activity android:name="ReplaceWithTheNameOfYourActivityYouWantToStart">
<intent-filter>
<action android:name="android.intent.action.SEND"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="text/plain"/>
<data android:mimeType="image/*"/>
</intent-filter>
</activity>- Check for
if(Intent.ACTION_SEND.equals(getIntent().getAction)) {do stuff}