private String getToastText(Context context, int actionId, String url) {
        switch (actionId) {
            case ACTION_ACTION_BUTTON:
                return context.getString(R.string.action_button_toast_text, url);
            case ACTION_MENU_ITEM:
                return context.getString(R.string.menu_item_toast_text, url);
            case ACTION_TOOLBAR:
                return context.getString(R.string.toolbar_toast_text, url);
            default:
                return context.getString(R.string.unknown_toast_text, url);
        }
    }
A BroadcastReceiver that handles the Action Intent from the Custom Tab and shows the Url
in a Toast.
demos/src/main/java/org/chromium/customtabsdemos/ActionBroadcastReceiver.java