Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Camera not wanting to start and defaulting to manual imput #198

Open
johan-schoeman opened this issue Jul 8, 2017 · 2 comments
Open

Camera not wanting to start and defaulting to manual imput #198

johan-schoeman opened this issue Jul 8, 2017 · 2 comments

Comments

@johan-schoeman
Copy link

johan-schoeman commented Jul 8, 2017

General information

  • SDK/Library version: 5.5.1
    Android Version and Device: Android 4.4.2, Samsung S4 Mini with Android 6.0

I have compiled and are trying to run SampleActivity.java on a KitKat, Lollipop, and Marshmallow device. I have in the SampleActivity commented out all the "putExtra" statements so that it will use default values in CardIOActivity. The app starts but defaults to manual input when I click on button "Scan Credit Card using Card.io". This happens on all 3 devices.

On The Samsung S4 mini the CPU Architecture is ARMv7 Processor rev 0 (v7I)
Instruction set is armeabi-v7a and armeabi

Anyone with some advise on how to get the scanner active?

   public void onScan(View pressed) {
        Intent intent = new Intent(this, CardIOActivity.class);
		

		
/*              .putExtra(CardIOActivity.EXTRA_NO_CAMERA, false)
                .putExtra(CardIOActivity.EXTRA_REQUIRE_EXPIRY, mEnableExpiryToggle.isChecked())
                .putExtra(CardIOActivity.EXTRA_SCAN_EXPIRY, mScanExpiryToggle.isChecked())
                .putExtra(CardIOActivity.EXTRA_REQUIRE_CVV, mCvvToggle.isChecked())
                .putExtra(CardIOActivity.EXTRA_REQUIRE_POSTAL_CODE, mPostalCodeToggle.isChecked())
                .putExtra(CardIOActivity.EXTRA_RESTRICT_POSTAL_CODE_TO_NUMERIC_ONLY, mPostalCodeNumericOnlyToggle.isChecked())
                .putExtra(CardIOActivity.EXTRA_REQUIRE_CARDHOLDER_NAME, mCardholderNameToggle.isChecked())
                .putExtra(CardIOActivity.EXTRA_SUPPRESS_MANUAL_ENTRY, true)
                .putExtra(CardIOActivity.EXTRA_USE_CARDIO_LOGO, mUseCardIOLogoToggle.isChecked())
                .putExtra(CardIOActivity.EXTRA_LANGUAGE_OR_LOCALE, (String) mLanguageSpinner.getSelectedItem())
                .putExtra(CardIOActivity.EXTRA_USE_PAYPAL_ACTIONBAR_ICON, mShowPayPalActionBarIconToggle.isChecked())
                .putExtra(CardIOActivity.EXTRA_KEEP_APPLICATION_THEME, mKeepApplicationThemeToggle.isChecked())
                .putExtra(CardIOActivity.EXTRA_GUIDE_COLOR, Color.GREEN)
                .putExtra(CardIOActivity.EXTRA_SUPPRESS_CONFIRMATION, mSuppressConfirmationToggle.isChecked())
                .putExtra(CardIOActivity.EXTRA_SUPPRESS_SCAN, mSuppressScanToggle.isChecked())
                .putExtra(CardIOActivity.EXTRA_RETURN_CARD_IMAGE, true);  */

        try {
            int unblurDigits = Integer.parseInt(mUnblurEdit.getText().toString());
            intent.putExtra(CardIOActivity.EXTRA_UNBLUR_DIGITS, unblurDigits);
        } catch(NumberFormatException ignored) {}

        startActivityForResult(intent, REQUEST_SCAN);
    }`
@lkorth
Copy link
Member

lkorth commented Jul 10, 2017

Please post the log output when you're attempting to start CardIOActivty. If the native libraries fail to load or the device is not supported you'll see those messages in the logs.

@johan-schoeman
Copy link
Author

Got it sorted out - thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants