@Override
    public void onReceive(Context context, Intent intent) {
        String url = intent.getDataString();
        if (url != null) {
            String toastText =
                    getToastText(context, intent.getIntExtra(KEY_ACTION_SOURCE, -1), url);
            Toast.makeText(context, toastText, Toast.LENGTH_SHORT).show();
        }
    }
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