我正在从Android应用程序中启动Chrome,我希望这看起来像我没有离开应用程序一样...为此,我以以下方式从意图中启动Chrome:
public void onClickApp(View view){
Intent intent = new Intent("android.intent.action.MAIN");
intent.setComponent(ComponentName.unflattenFromString("com.android.chrome/com.android.chrome.Main"));
intent.addCategory("android.intent.category.LAUNCHER");
intent.setData(Uri.parse("http://google.com"));
startActivity(intent);
}
但我不知道如何隐藏顶部栏,另外,如果可以“私密”地启动它会更好。有办法实现这个吗?