Can my Android app open a URL in an incognito tab?

2019-02-24 05:50发布

问题:

We all know how to open a URL in the browser in Andriod. Do something like this:

Intent browserIntent = new Intent("android.intent.action.VIEW", Uri.parse(url));
context.startActivity(browserIntent);

Honeycomb's stock browser includes support for incognito mode. Is there a way to make the target URL open in an incognito tab? I can't seem to find it.

回答1:

Currently there's no incognito mode for stock Android Browser so probably you cant do that.Just Honeycomb and above version browsers have that feature.



回答2:

As far as I know there is no incognito mode in the stock Android browser.

There are several apps supplying this feature - they should offer themselves when you fire the Intent you gave in the code.