I'm trying to share a list of images from the gallery into my app to use it recycler view or any thing else
<activity
android:icon="@mipmap/ic_launcher"
android:name=".MainActivity"
>
<intent-filter>
<category android:name="android.intent.category.LAUNCHER" />
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<action android:name="android.intent.action.SEND"/>
<data android:mimeType="*/*"/>
</intent-filter>
</activity>
that works:-
1-specify these lines on the manifest
2-Second get the action that opened your intent and check if its the one we registered for the activity and then the data is received as ArrayList of Uri