草庐IT

launchGoogleChrome

全部标签

java - 如何从 Android 应用程序在谷歌浏览器中打开网页隐身

我在这上面花了很多时间,但无法弄清楚。我需要以隐身模式启动Chrome浏览器。我的代码:privatevoidlaunchBrowser(){Stringurl="http://foyr.com";IntentlaunchGoogleChrome=newIntent(Intent.ACTION_VIEW,Uri.parse(url));launchGoogleChrome.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);launchGoogleChrome.setPackage("com.android.chrome");try{startActivit