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

有些话、适合烂在心里 提交于 2019-12-04 04:04:39

问题


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.



来源:https://stackoverflow.com/questions/8127654/can-my-android-app-open-a-url-in-an-incognito-tab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!