Android Intent.createChooser for ACTION_视图仅显示默认浏览器

Android Intent.createChooser for ACTION_视图仅显示默认浏览器,android,android-intent,Android,Android Intent,我正在尝试使用Intent.createChooser显示应用程序选择器对话框,该对话框将列出用户手机中所有可用的web浏览器。 我正在使用下面的代码: Intent browserIntent = new Intent(Intent.ACTION_VIEW); browserIntent.setData(Uri.parse(category)); // Create and start the chooser Intent cho

我正在尝试使用Intent.createChooser显示应用程序选择器对话框,该对话框将列出用户手机中所有可用的web浏览器。 我正在使用下面的代码:

        Intent browserIntent = new Intent(Intent.ACTION_VIEW);
        browserIntent.setData(Uri.parse(category));
        // Create and start the chooser
        Intent chooser = Intent.createChooser(browserIntent, "Open with...");

        pIntent = PendingIntent.getActivity(helperMethodContext, 0, chooser, PendingIntent.FLAG_UPDATE_CURRENT);

        Log.d("HelperMethods: ", "video chat url: " + category);  
我正在安卓6上测试这个。我的手机有3种浏览器,默认浏览器、chrome浏览器和firefox浏览器。当我运行它并单击链接(通知)时,应用程序选择器对话框打开,但只显示默认浏览器。它不显示chrome或firefox

我已检查手机中的默认应用设置,但没有默认浏览器。当我单击默认浏览器时,它会打开一个应用程序选择器对话框,显示我在手机上安装的所有浏览器应用程序


请有人告诉我哪里出了问题。

有一个非常重要的问题,那就是你有什么类型的uri。是http、https还是其他方案。在您的例子中,它是
Uri.parse(category)
。例如,firefox可以处理这样的方案:
http
https
文件
关于
javascript
。还有mimeType的数据:
text/html
text/plain
application/xhtml+xml

@jaydeppatel单击链接时,我不想打开默认浏览器。我想显示“应用程序选择器”对话框,其中包含所有已安装浏览器的列表这可能对您有所帮助:@jaydeppatel我没有在“默认应用程序设置”中设置默认浏览器。请把问题通读一遍。