Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide / Disable default menu in Chrome Custom Tab

I have implemented new Chrome Custom Tab in android, I am using 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 secure my URL or not like to show my URL to User, But there is a option Open in Chrome in default menu, By using this link user can open my URL in browser,By how hide the default menu?

my output

like image 330
appukrb Avatar asked Sep 08 '15 05:09

appukrb


2 Answers

There are no methods for hiding the menu option in Chrome custom tabs

like image 53
Upendranath Reddy Avatar answered Oct 07 '22 08:10

Upendranath Reddy


At this moment, it's not possible to hide the overflow menu or "Open in Chrome" menu item.

like image 32
andreban Avatar answered Oct 07 '22 09:10

andreban