Android 处理来自Chrome的共享和其他操作

Android 处理来自Chrome的共享和其他操作,android,android-intent,android-browser,Android,Android Intent,Android Browser,我有一个可以播放一些视频的应用程序,比如MXPlayer加上一个轻浏览器。因此,当有人在chrome中点击某个视频文件的链接时,我想有机会处理这些文件,当有人想共享链接时,我也想出现在chrome的共享弹出窗口上(这样我的应用程序就可以打开页面)。到目前为止,我已经让我的应用程序显示在其他应用程序的共享弹出窗口上,但我就是无法让它显示在Chrome的共享弹出窗口上。以下是我的意向过滤器: <intent-filter> <action a

我有一个可以播放一些视频的应用程序,比如MXPlayer加上一个轻浏览器。因此,当有人在chrome中点击某个视频文件的链接时,我想有机会处理这些文件,当有人想共享链接时,我也想出现在chrome的共享弹出窗口上(这样我的应用程序就可以打开页面)。到目前为止,我已经让我的应用程序显示在其他应用程序的共享弹出窗口上,但我就是无法让它显示在Chrome的共享弹出窗口上。以下是我的意向过滤器:

        <intent-filter>
            <action android:name="android.intent.action.VIEW"/>
            <category android:name="android.intent.category.DEFAULT"/>
            <category android:name="android.intent.category.BROWSABLE"/>
            <data android:scheme="http"/>
            <data android:scheme="https"/>
            <data android:mimeType="video/*"/>
            <data android:mimeType="*/avi"/>
            <data android:mimeType="*/mkv"/>
            <data android:mimeType="application/mp4"/>

        </intent-filter>
        <intent-filter android:icon="@drawable/ic_launcher">
            <action android:name="android.intent.action.SEND"/>
            <data android:mimeType="*/*"/>
            <data android:scheme="http"/>
            <data android:scheme="https"/>


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

有人能告诉我我做错了什么吗?另外,我应该提到我只想要http/https流,我不想要本地文件


谢谢。

我通过将此选项用于“共享”菜单选项,使其正常工作:

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

当有人点击一个链接,chrome会弹出一个对话框,显示打开链接的位置:

        <intent-filter>
            <action android:name="android.intent.action.VIEW"/>
            <category android:name="android.intent.category.DEFAULT"/>
            <category android:name="android.intent.category.BROWSABLE"/>
            <data android:scheme="http"/>
            <data android:scheme="https"/>
        </intent-filter>