public boolean isCardScanningAvailable(){
  try {
    return CardIOActivity.canReadCardWithCamera();
  }
 catch (  NoClassDefFoundError e) {
    return false;
  }
}

public boolean isCardScanningAvailable ( ) { try { return CardIOActivity . canReadCardWithCamera ( ) ; } catch ( NoClassDefFoundError e ) { return false ; } }
check if card scanning is available . card scanning requires the card . io dependency and camera support .
