Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void onScanPress(View v) {
- Intent scanIntent = new Intent(this, CardIOActivity.class);
- // customize these values to suit your needs.
- scanIntent.putExtra(CardIOActivity.EXTRA_REQUIRE_EXPIRY, true); // default: true
- scanIntent.putExtra(CardIOActivity.EXTRA_REQUIRE_CVV, false); // default: false
- scanIntent.putExtra(CardIOActivity.EXTRA_REQUIRE_POSTAL_CODE, false); // default: false
- // MY_SCAN_REQUEST_CODE is arbitrary and is only used within this activity.
- startActivityForResult(scanIntent, MY_SCAN_REQUEST_CODE);
- }
- Failed to load native library: Couldn't load cardioDecider from loader dalvik.system.PathClassLoader
- Processor type is not supported
- ERROR_NO_DEVICE_SUPPORT: This device cannot use the camera to read card numbers.
- <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
- <uses-permission android:name="android.permission.INTERNET"/>
- <uses-permission android:name="android.permission.CAMERA" />
- <!-- Permission to vibrate - recommended, allows vibration feedback on scan -->
- <uses-permission android:name="android.permission.VIBRATE" />
- <!-- Camera features - recommended -->
- <uses-feature android:name="android.hardware.camera" android:required="false" />
- <uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
- <uses-feature android:name="android.hardware.camera.flash" android:required="false" />
- <activity
- android:name="io.card.payment.CardIOActivity"
- android:configChanges="keyboardHidden|orientation" />
- <activity
- android:name="io.card.payment.DataEntryActivity" />
Advertisement
Add Comment
Please, Sign In to add comment