Android: Add the app to the set image as list

I am trying to add my application to the "install as" list that appears in the gallery when I select an image. If the user opens the image in the gallery, there is a button for set as. when the user touches it, he will receive a list. In other words, if he wants to use this image in my application. I tried:

<intent-filter>
            <action android:name="android.intent.action.SET_WALLPAPER" />

            <category android:name="android.intent.category.DEFAULT" />
</intent-filter>

but I got nothing.

enter image description here

enter image description here

+4
source share
2 answers

Now I understand: You must register your activity in order to process the "Image" tabs from other applications. Paste this into your manifest:

<activity android:name=".YourActivity" >
<intent-filter>
    <action android:name="android.intent.action.SEND" />
    <category android:name="android.intent.category.DEFAULT" />
    <data android:mimeType="image/*" />
</intent-filter>
<intent-filter>
    <action android:name="android.intent.action.SEND_MULTIPLE" />
    <category android:name="android.intent.category.DEFAULT" />
    <data android:mimeType="image/*" />
</intent-filter>
</activity>

a > >

+1

intent-filter, " " " ", ATTACH_DATA.

<intent-filter>
            <action android:name="android.intent.action.ATTACH_DATA"/>
            <category android:name="android.intent.category.DEFAULT" />
            <data android:mimeType="image/*" />
</intent-filter>
0

All Articles