qosacat.blogg.se

Mozilla firefox for android
Mozilla firefox for android






mozilla firefox for android

Is there any way in Android to force open a link to open in Chrome?.Ģ. How can I make this work for any/all browsers?ġ. Has this bug been fixed? Is there a known way to make Firefox open the link in the same tab? Android Mozilla FireFox not opening page in a new tab. Firefox doesn't handle the flag Browser.EXTRA_APPLICATION_ID from an Intent.ī. How can I make this work generally with any/all browsers?Īpparently this is a known issue with Firefox:Ī. The same trick does not work with Firefox. So the trick to getting this to work is to set packageName as, and voilà, Chrome opens the link in the currently open tab. Your own app, it doesn't open the link in the currently open tab if you use the or ), not the package name of your app.Įven though the documentation asks that you use the package name of Here it is important to note that packageName above needs to be the package name of the BROWSER that one wishes to open (e.g. Now in theory, this is supposed to work with all browsers. Specifically it is Browser.EXTRA_APPLICATION_ID that instructs the browser to open the link in the same tab: Intent.putExtra(Browser.EXTRA_APPLICATION_ID, packageName) the opened page should be a " redirect" (meaning in the same tab).īased on a consensus of multiple SO posts (see below), the way to do this is as follows: Intent intent = new Intent(Intent.ACTION_VIEW) I have a very specific requirement: I need to open a URL link in a browser (not in a WebView), and I need it to open in the currently open tab, i.e.








Mozilla firefox for android