Search code examples
androidcard.io

Cancel button in card.io scanning screen Android


I'm using card.io on Android. Is it possible to put a cancel button in the scanning view? iOS has that option.

I'm currently passing these extras to the scanIntent:

public void onScanPress() {
    scanIntent.putExtra(CardIOActivity.EXTRA_SUPPRESS_MANUAL_ENTRY, true);
    scanIntent.putExtra(CardIOActivity.EXTRA_SUPPRESS_CONFIRMATION, true);
}

Solution

  • In Android, card.io relies on the fact that there is a back button (hard or soft). Therefore, there's no additional cancel button. Sorry.