On Aug 14th 11 PM ET/Aug 15th 03:00 UTC, due to scheduled Firefox Account server maintenance, users may not be able to sign in or create a new subscription. This is expected to last approximately 30 minutes. Status updates can be found at https://status.vpn.mozilla.org or https://status.relay.firefox.com.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Directly start firefox on buttonclick event with URL passed to it

  • No replies
  • 10 have this problem
  • 28 views
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.

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.