Guest User

Untitled

a guest
Mar 4th, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. public void onScanPress(View v) {
  2. Intent scanIntent = new Intent(this, CardIOActivity.class);
  3.  
  4. // customize these values to suit your needs.
  5. scanIntent.putExtra(CardIOActivity.EXTRA_REQUIRE_EXPIRY, true); // default: true
  6. scanIntent.putExtra(CardIOActivity.EXTRA_REQUIRE_CVV, false); // default: false
  7. scanIntent.putExtra(CardIOActivity.EXTRA_REQUIRE_POSTAL_CODE, false); // default: false
  8.  
  9. // MY_SCAN_REQUEST_CODE is arbitrary and is only used within this activity.
  10. startActivityForResult(scanIntent, MY_SCAN_REQUEST_CODE);
  11. }
  12.  
  13. Failed to load native library: Couldn't load cardioDecider from loader dalvik.system.PathClassLoader
  14. Processor type is not supported
  15. ERROR_NO_DEVICE_SUPPORT: This device cannot use the camera to read card numbers.
  16.  
  17. <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
  18. <uses-permission android:name="android.permission.INTERNET"/>
  19.  
  20. <uses-permission android:name="android.permission.CAMERA" />
  21.  
  22. <!-- Permission to vibrate - recommended, allows vibration feedback on scan -->
  23. <uses-permission android:name="android.permission.VIBRATE" />
  24.  
  25. <!-- Camera features - recommended -->
  26. <uses-feature android:name="android.hardware.camera" android:required="false" />
  27. <uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
  28. <uses-feature android:name="android.hardware.camera.flash" android:required="false" />
  29.  
  30. <activity
  31. android:name="io.card.payment.CardIOActivity"
  32. android:configChanges="keyboardHidden|orientation" />
  33.  
  34. <activity
  35. android:name="io.card.payment.DataEntryActivity" />
Advertisement
Add Comment
Please, Sign In to add comment