How to customize share menu in android?

Viewed 2736

I need to share image and add "Save image" item in android share menu, I saw something like this in 9gag app, they have "Save" item in share menu, and share menu seems to be a bottom sheet. But how it can be achieved? enter image description here

What I've done: I added empty activity with intent filter in manifest which launches service and this service downloads image

<activity
            android:name=".model.services.ShareActivity"
            android:icon="@drawable/download_icon"
            android:label="Save">
            <intent-filter
                android:label="Save"
                android:icon="@drawable/download_icon">
                <action android:name="android.intent.action.SEND" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="image/*"/>
            </intent-filter>
        </activity>

and now I have this icon in share menu and it works, but this icon also appear in share menu of other apps, I need to show it only in my app, how I can make it private or something?

1 Answers
Related