我知道这个问题已经被问过很多次了,但我已经尝试过答案,但没有一个有效。这是我当前的 Intent 过滤器
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="*/*" android:scheme="http" />
</intent-filter>
我正在寻找的答案是 android youtube: share a youtube video TO my app?和 How to appear my app in YouTube share via list?
但由于某种原因,它们对我不起作用。我尝试了很多替代方案,使用 android:host、使用不同的方案、特定的 mime 类型。当我点击分享到我的应用程序时,我只需要获取 YouTube 视频的 URL。 有什么想法吗?
最佳答案
您必须添加:
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
在你的 list 文件中(我刚刚尝试过;))。
来源:Youtube intent filter & scheme 更多信息:http://developer.android.com/training/basics/intents/filters.html
关于android - 让我的应用出现在 YouTube 分享中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35591413/