Hide / disable the default menu in the user's Chrome bookmark

I implemented a new special Chrome Custom tab in android, I use the following code to open

String url = "http://www.flipkart.com/"; int color = Color.BLUE; CustomTabsIntent.Builder intentBuilder = new CustomTabsIntent.Builder(); intentBuilder.setToolbarColor(color); intentBuilder.setShowTitle(true); CustomTabActivityHelper.openCustomTab( this, intentBuilder.build(), Uri.parse(url), new WebviewFallback()); 

I need to protect my URL or not show the user's URL, but the default menu has the Open in Chrome option. Using this link, the user can open my URL in the browser. How to hide the default menu?

my conclusion

+6
source share
4 answers

It’s currently not possible to hide the overflow menu or the “Open in Chrome” option.

+3
source

No way to hide a menu option in Chrome custom tabs

+1
source

The Chrome custom tab actually uses the Chrome app on the mobile phone.

Get started in the Chrome app using the link. If chrome is not installed on the user's mobile phone, it will use the default webView.

In fact, Chrome custom tabs are designed to display a web page where the user is sure that the programmer of this software does not have phishing, as well as bank payment.

Therefore, you must show the user options on the toolbar.

0
source

You must add a hide flag before. To disable the URL parameter, but it cannot hide the name of your site.

intentBuilder.enableUrlBarHiding ();

-1
source

All Articles