title: card io not scanning credit card in android
body: <p>I am trying to implement Card.io in my app, I followed the instructions on <a href="https://github.com/card-io/card.io-Android-source" rel="nofollow noreferrer">Card.io</a> website and when I get into my app and I launch it. When I click button I call CardIOActivity and  I can't  turn on my camera. I have this screen when I click button<a href="https://i.stack.imgur.com/9i5iE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9i5iE.png" alt="enter image description here"></a> </p>
  
  <p>This is my manifest code:</p>
  
  <pre><code> &lt;uses-sdk android:minSdkVersion="8" /&gt;
  
  &lt;uses-permission android:name="android.permission.CAMERA" /&gt;
  &lt;uses-permission android:name="android.permission.VIBRATE" /&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;application
      android:label="card.io example"
      android:theme="@style/MyTheme" &gt;
      &lt;activity
          android:name="MyScanActivity"
          android:label="card.io example" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name="io.card.payment.CardIOActivity"
          android:configChanges="keyboardHidden|orientation"
          android:hardwareAccelerated="true" /&gt;
      &lt;activity
          android:name="io.card.payment.DataEntryActivity"
          android:screenOrientation="portrait" /&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p>and This is my java code</p>
  
  <pre><code>public class MyScanActivity extends Activity {
  final String TAG = getClass().getName();
  
  private Button scanButton;
  private TextView resultTextView;
  
  private int MY_SCAN_REQUEST_CODE = 100; 
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
  
      resultTextView = (TextView) findViewById(R.id.resultTextView);
      scanButton = (Button) findViewById(R.id.scanButton);
  
  }
  
  @Override
  protected void onResume() {
      super.onResume();
  
      if (CardIOActivity.canReadCardWithCamera()) {
          scanButton.setText("Scan a credit card with card.io");
      } else {
          scanButton.setText("Enter credit card information");
      }
  }
  
  public void onScanPress(View v) {
  
      Intent scanIntent = new Intent(this, CardIOActivity.class);
  
      scanIntent.putExtra(CardIOActivity.EXTRA_REQUIRE_EXPIRY, true); 
      scanIntent.putExtra(CardIOActivity.EXTRA_REQUIRE_CVV, false);
      scanIntent.putExtra(CardIOActivity.EXTRA_REQUIRE_POSTAL_CODE, false); 
  
      scanIntent.putExtra(CardIOActivity.EXTRA_SUPPRESS_MANUAL_ENTRY, false); 
  
      scanIntent.putExtra(CardIOActivity.EXTRA_KEEP_APPLICATION_THEME, false); 
  
      startActivityForResult(scanIntent, MY_SCAN_REQUEST_CODE);
  }
  
  @Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
  
      String resultStr;
      if (data != null &amp;&amp; data.hasExtra(CardIOActivity.EXTRA_SCAN_RESULT)) {
          CreditCard scanResult = data.getParcelableExtra(CardIOActivity.EXTRA_SCAN_RESULT);
  
          resultStr = "Card Number: " + scanResult.getRedactedCardNumber() + "\n";
  
          if (scanResult.isExpiryValid()) {
              resultStr += "Expiration Date: " + scanResult.expiryMonth + "/" + scanResult.expiryYear + "\n";
          }
  
          if (scanResult.cvv != null) {
  
              resultStr += "CVV has " + scanResult.cvv.length() + " digits.\n";
          }
  
          if (scanResult.postalCode != null) {
              resultStr += "Postal Code: " + scanResult.postalCode + "\n";
          }
      } else {
          resultStr = "Scan was canceled.";
      }
      resultTextView.setText(resultStr);
  
  }
  </code></pre>
  
  <p>}</p>
  
  <p>I have never used card.io and I don't know what is wrong. How can I to scan my visa or some other card with Card.io.
  If anyone knows solution please help me.</p>