I am trying to provide two share option for image sharing, so i have two activity which can accept image type.It works well everywhere other than Google photos. If i comment out one of them from manifest then it works fine , but if i keep both then only one will show up when i click on share button and clicking on it will take me to the other activity, not the one it is associated with.
This problem only occurs in Google photos app and nowhere else.
<activity
android:name="mobi.abc.xyz.NewPostActivity">
<intent-filter android:label="Socials">
<action android:name="android.intent.action.SEND" />
<action android:name="android.intent.action.SEND_MULTIPLE" />
<category android:name="android.intent.category.DEFAULT" />
<action android:name="android.intent.action.PICK" />
<data android:mimeType="text/plain" />
<data android:mimeType="application/*" />
<data android:mimeType="image/*" />
<data android:mimeType="video/*" />
</intent-filter>
</activity>
<activity
android:name="mobi.abc.xyz.EditActivity">
<intent-filter android:label="Share Image to Edit">
<action android:name="android.intent.action.SEND" />
<action android:name="android.intent.action.SEND_MULTIPLE" />
<category android:name="android.intent.category.DEFAULT" />
<action android:name="android.intent.action.PICK" />
<data android:mimeType="image/*" />
</intent-filter>
</activity>

