A AmSh New Member Jan 19, 2021 #1 Hi, I'm successfully opening a URL with chrome using the following code: B4X: private Browser As Intent Browser.Initialize(Browser.ACTION_VIEW, "https://www.b4x.com") StartActivity(Browser) (This code is from this thread) This code opens the chrome in normal mode. How can open the chrome in Incognito mode?
Hi, I'm successfully opening a URL with chrome using the following code: B4X: private Browser As Intent Browser.Initialize(Browser.ACTION_VIEW, "https://www.b4x.com") StartActivity(Browser) (This code is from this thread) This code opens the chrome in normal mode. How can open the chrome in Incognito mode?
Erel B4X founder Staff member Licensed User Longtime User Jan 20, 2021 #2 I don't think that Chrome exposes such option. Upvote 0
cklester Well-Known Member Licensed User Jan 21, 2021 #3 Can you use a shell command? This article says the "-incognito" command line parameter does it. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jan 21, 2021 #4 No. It has nothing to do with Android. In Android you start other apps with Intents. The only way to start it in incognito mode is if the chrome app exposes such option with an Intent. As far as I see, it doesn't. Upvote 0
No. It has nothing to do with Android. In Android you start other apps with Intents. The only way to start it in incognito mode is if the chrome app exposes such option with an Intent. As far as I see, it doesn't.
A AmSh New Member Jan 22, 2021 #5 Thanks for your answers. Where can I see a list of options that chrome exposes with an Intent? And how do I define these options in the Intent? Upvote 0
Thanks for your answers. Where can I see a list of options that chrome exposes with an Intent? And how do I define these options in the Intent?
Erel B4X founder Staff member Licensed User Longtime User Jan 24, 2021 #6 AmSh said: Where can I see a list of options that chrome exposes with an Intent? Click to expand... Search Google. AmSh said: And how do I define these options in the Intent? Click to expand... Intent.PutExtra. Upvote 0
AmSh said: Where can I see a list of options that chrome exposes with an Intent? Click to expand... Search Google. AmSh said: And how do I define these options in the Intent? Click to expand... Intent.PutExtra.