code: public static boolean isAvailable(Context context) {
          if (SDK_INT < JELLY_BEAN_MR2) {
              return false;
          }
  
          Intent serviceIntent = new Intent("android.support.customtabs.action.CustomTabsService")
                  .setPackage("com.android.chrome");
          ServiceConnection connection = new ServiceConnection() {
              @Override
              public void onServiceConnected(ComponentName name, IBinder service) {}
  
              @Override
              public void onServiceDisconnected(ComponentName name) {}
          };
  
          boolean available = context.bindService(serviceIntent, connection,
                  Context.BIND_AUTO_CREATE | Context.BIND_WAIVE_PRIORITY);
          context.unbindService(connection);
  
          return available;
      }
docs: Checks to see if this device supports Chrome Custom Tabs and if Chrome Custom Tabs are available.
  
  @param context
  @return {@code true} if Chrome Custom Tabs are supported and available.