搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

Directly start firefox on buttonclick event with URL passed to it

  • 无回复
  • 10 人有此问题
  • 27 次查看
more options

I have an URL to be opened directly (will check if installed or not) in Firefox android browser only, for the button click event.....But my code opens dialog to choose browser(URL is passed)

               if(isAppInstalled) {
                   Uri uri = Uri.parse("http://localhost/rtc.html"); 
                   Intent intent = new Intent(Intent.ACTION_VIEW, uri);
                   startActivity(intent);
OR just opens firefox (if installed) but URL is not passed to it
 Intent intent1=getPackageManager().getLaunchIntentForPackage("com.mozilla.firefox");
                   startActivity(intent1);

So how do I open firefox directly with URL passed to it.