Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/211.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
当用户单击来自不同应用程序的任何链接时,是否希望在android应用程序选择器对话框中列出我的应用程序_Android_Android Manifest_Deep Linking - Fatal编程技术网

当用户单击来自不同应用程序的任何链接时,是否希望在android应用程序选择器对话框中列出我的应用程序

当用户单击来自不同应用程序的任何链接时,是否希望在android应用程序选择器对话框中列出我的应用程序,android,android-manifest,deep-linking,Android,Android Manifest,Deep Linking,我想在AppChooser对话框中列出我的应用程序(比如谷歌、Mozilla,当我们点击任何链接时,都会在chooser对话框中显示),这很好地工作,但当我点击youtube上的任何链接时,它不会在Android chooser对话框中显示我的应用程序 我的清单文件代码是:- <activity android:name=".mvp.BroswerActivity" android:configChanges="keyboardHidden|

我想在AppChooser对话框中列出我的应用程序(比如谷歌、Mozilla,当我们点击任何链接时,都会在chooser对话框中显示),这很好地工作,但当我点击youtube上的任何链接时,它不会在Android chooser对话框中显示我的应用程序

我的清单文件代码是:-

<activity
            android:name=".mvp.BroswerActivity"
            android:configChanges="keyboardHidden|orientation|screenSize"
            android:windowSoftInputMode="stateAlwaysHidden|stateHidden"
            android:launchMode="singleTask">


        <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" android:host="developer.android.com"/>
            <data android:scheme="http" android:host="*"/>
            <data android:scheme="https" android:host="*"/>

        </intent-filter>

 </activity>

当我们点击任何其他网站时,它都在工作,但如果youtube不工作的话

我也尝试在我的代码中添加共享意图,但没有运气解决这个问题

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

请建议我能做些什么来解决这个问题

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

提前感谢。

YouTube发送带有
动作分享的
文本/纯文本
意图,除非您正在谈论分享视频。所以很明显,它不会显示任何
操作视图
意图。

如果youtube不工作
你在youtube上到底做了什么?阅读此文档Hello Vladyslav我只想当用户点击youtube上的任何链接时,我的应用程序也会被google列出,android选择器对话框中的Mozilla。@ShubhamAgarwal使用
@Vladyslav
进行响应,否则我将不会收到通知,也永远不会知道您已响应<代码>youtube中的链接
youtube什么?网站,还是youtube应用程序?@Vladyslav,谢谢你的指导,我已经在youtube应用程序中尝试过了。我也在代码中添加了动作分享意图,但它不起作用。