title: Scanning card with card.io
body: <p>I have a project in which you want to scan the card. For this task I use the library <a href="https://github.com/card-io/card.io-Android-SDK" rel="nofollow noreferrer">card.io</a>. Recently I updated library to the latest version (5.4.0) And now, instead of scanning the card are changed to enter it manually. What did I do wrong? All settings are made according to instructions.</p>
  
  <p><strong>AndroidManifest</strong></p>
  
  <pre><code>    &lt;uses-sdk
              android:minSdkVersion="15"
              android:targetSdkVersion="19" /&gt;
  
          &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
          &lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /&gt;
          &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
          &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
          &lt;uses-permission android:name="android.permission.CAMERA" /&gt;
          &lt;uses-permission android:name="android.permission.VIBRATE" /&gt;
          &lt;uses-permission android:name="android.permission.NFC" /&gt;
          &lt;uses-permission android:name="com.google.android.gallery3d.permission.GALLERY_PROVIDER" /&gt;
          &lt;uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /&gt;
  
      &lt;activity android:name="io.card.payment.CardIOActivity" android:configChanges="keyboardHidden|orientation" /&gt;
              &lt;activity android:name="io.card.payment.DataEntryActivity" /&gt;
  &lt;uses-feature
          android:name="android.hardware.camera"
          android:required="false" /&gt;
      &lt;uses-feature
          android:name="android.hardware.camera.autofocus"
          android:required="false" /&gt;
      &lt;uses-feature
          android:name="android.hardware.camera.flash"
          android:required="false" /&gt;
  </code></pre>
  
  <p>Then, this class in which I try open scanActivity(CardIOActivity)</p>
  
  <pre><code>private static void launchCardIoPhoto(Context ctx) {
          if (!(ctx instanceof Activity)) return;
          //Intent scanIntent = new Intent("android.media.action.IMAGE_CAPTURE");
          Intent scanIntent = new Intent(ctx, CardIOActivity.class);
          //scanIntent.putExtra(CardIOActivity.EXTRA_APP_TOKEN, CARD_IO_API_KEY);
          scanIntent.putExtra(CardIOActivity.EXTRA_REQUIRE_EXPIRY, false);
          scanIntent.putExtra(CardIOActivity.EXTRA_REQUIRE_POSTAL_CODE, false);
          scanIntent.putExtra(CardIOActivity.EXTRA_REQUIRE_CVV, false);
          scanIntent.putExtra(CardIOActivity.EXTRA_SUPPRESS_MANUAL_ENTRY, true);
          scanIntent.putExtra(CardIOActivity.EXTRA_USE_CARDIO_LOGO, true);
          BankokApplication.app().ignoreNextResume();
  
          Fragment fragment = ((Activity) ctx).getFragmentManager().findFragmentById(R.id.bottom_sheet_container);
          if (fragment != null &amp;&amp; fragment instanceof CardScanReceiver){
              fragment.startActivityForResult(scanIntent, REQ_CODE_CARD_IO_PHOTO);
          }else {
              ((Activity) ctx).startActivityForResult(scanIntent, REQ_CODE_CARD_IO_PHOTO);
          }
      }
  </code></pre>
  
  <p>And when I try to do that, I have something like this:
  <a href="https://i.stack.imgur.com/EeLHT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EeLHT.png" alt="enter image description here"></a></p>
  
  <p><strong>Update from the comments:</strong></p>
  
  <p>Tested on </p>
  
  <ul>
  <li>Asus Z00AD (Zenphone)</li>
  <li>Huawei</li>
  <li>Nexus 5</li>
  <li>Genymotion</li>
  </ul>
  
  <p>The example application from card.io works as expected</p>
  
  <p><strong>EDIT</strong>
  <br> <br>
  Find error:</p>
  
  <pre><code>No implementation found for boolean io.card.payment.CardScanner.nUseX86() (tried Java_io_card_payment_CardScanner_nUseX86 and Java_io_card_payment_CardScanner_nUseX86__)
  Failed to load native library: No implementation found for boolean io.card.payment.CardScanner.nUseX86() (tried Java_io_card_payment_CardScanner_nUseX86 and Java_io_card_payment_CardScanner_nUseX86__)
  </code></pre>