I have used this example so that other applications can call my activity to receive data from them.
Specifically, I want when uploading an image from a browser my application can supply that image.
In the following image can see that case. A list of applications that provide images when the user clicks upload file:
I used this code that is copied from the link I added to the start.
<activity
android:name=".LoginActivity"
android:label="@string/title_activity_login">
<!-- filter for sending text or images; accepts SEND action and text or image data -->
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
<data android:mimeType="text/plain" />
</intent-filter>
</activity>
I can not get my app to appear in the apps list shown in the photo.
Also I test this, as @Avi suggests:
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.APP_BROWSER" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:mimeType="image/*" />
<data android:mimeType="text/plain" />
</intent-filter>
Getting the same results
Note: I am using the chrome browser in Android