Search code examples
androidyoutubeshareintentfilter

Make my app appear in YouTube share?


I know this has been asked quite a few times, but I have tried the answers and non of them worked. This is my current intent-filter

<intent-filter>
            <action android:name="android.intent.action.SEND" />
            <category android:name="android.intent.category.DEFAULT" />
            <data android:mimeType="*/*" android:scheme="http" />
</intent-filter>

The answers I was looking for were android youtube: share a youtube video TO my app? and How to appear my app in YouTube share via list?

But for some reason they don't work for me. I've tried many alternatives, using android:host, using different schemes, specific mime types. I only need to get the url of the youtube video once I click share to my app. Any ideas?


Solution

  • You have to add:

    <intent-filter>
                <action android:name="android.intent.action.SEND" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="text/plain" />
            </intent-filter>
    

    in your manifest file (I just tried ;)).

    source:Youtube intent filter & scheme more info:http://developer.android.com/training/basics/intents/filters.html