¿Deseas verificar si un dispositivo Android tiene un navegador compatible con pestañas personalizadas?

Para saber si el navegador predeterminado o algún navegador de un dispositivo admite pestañas personalizadas, usa el ayudante getPackageName en CustomTabsClient:

String packageName = CustomTabsClient.getPackageName(
        context, 
        Collections.emptyList()
);
if (packageName == null) {
    // Custom Tabs are not supported by the default browser
}

También puedes verificar si algún navegador del dispositivo admite pestañas personalizadas. Para ello, sigue estos pasos:

// Get all apps that can handle VIEW intents and Custom Tab service connections.
Intent activityIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.example.com"));
PackageManager packageManager = context.getPackageManager();
List<ResolveInfo> viewIntentHandlers = packageManager.queryIntentActivities(activityIntent, 0);
// Get a package that supports Custom Tabs
String packageName = CustomTabsClient.getPackageName(
        context, 
        viewIntentHandlers,
        true /* ignore default */
);
if (packageName == null) {
    // Custom Tabs are not supported by any browser on the device
}

Android 11 introdujo cambios en la visibilidad de paquetes. Si tu app para Android se orienta al nivel de API 30 o superior, debes agregar la siguiente sección de consultas a AndroidManifest.xml. De lo contrario, el fragmento de código anterior no mostrará resultados:

<queries>
    <intent>
        <action android:name=
            "android.support.customtabs.action.CustomTabsService" />
    </intent>
</queries>